标题
<h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3>
段落
<p>This is a paragraph.</p> <p>This is another paragraph.</p>
链接
<a href="http://www.baidu.com.cn">This is a link</a>
图像
<img src="w3school.jpg" width="104" height="142" />
水平线
<p>This is a paragraph</p> <hr /> <p>This is a paragraph</p> <hr /> <p>This is a paragraph</p>
注释
<!-- This is a comment -->
换行
<p>This is<br />a para<br />graph with line breaks</p>
HTML 样式实例 - 字体、颜色和尺寸
<body> <h1 style="font-family:verdana">A heading</h1> <p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p> </body>
HTML 样式实例 - 文本对齐
<body> <h1 style="text-align:center">This is a heading</h1> <p>The heading above is aligned to the center of this page.</p> </body>