<!DOCTYPE html>
<html> //描述网页
<body> //可见的页面内容
<h1>My First Heading</h1> //标题
<p>My first paragraph.</p> //段落
<a href="http://www.w3school.com.cn">This is a link</a> //HTML链接 target属性 name属性
<img src="w3school.jpg" width="104" height="142" /> //HTML图像
</body>
</html>
<br> <br/> //空的HTML元素 插入单个折行(换行)
<hr/> 水平线
<!-- --> 注释
<link rel="stylesheet" type="text/css" href="mystyle.css"> //外部样式表
<style > </style> //内部样式表
<p
style="color: red; margin-left: 20px">
This is a paragraph
This is a paragraph
</p> //内联样式
href name 超链接
<br/> 在开始标签中添加斜杠 关闭空元素的正确方法
HTML属性 名称/值对
< h1 align="center"> 居中排列标题
<body bgcolor="yellow"> 背景颜色
<table border="1"> 表格边框
<p>This is a paragraph</p>
<hr /> //hr元素可用于分隔内容
<p>This is a paragraph</p>
<hr />
<hr /> //hr元素可用于分隔内容
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<!--This is a comment -->
<b> 定义粗体文本
<big> 定义大号字
<em> 着重
<i> 斜体字
<small> <strong> <sub> <sup> <ins> <del>
<var> 定义变量
<q> 定义短的引用
<blockquote> 定义被引用的节
<abbr> 定义缩写 首字母缩略语
<dfn>
<samp> 定义计算机输出示例
<!-- -->
<style>
<div algn="center"