HTML 标题
HTML 标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。
<html>
<body>
<!--
h1~h6是标题标签
-->
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
<p>请仅仅把标题标签用于标题文本。
不要仅仅为了产生粗体文本而使用它们。
请使用其它标签或 CSS 代替。
</p>
</body>
</html>
HTML 段落
HTML 段落是通过 <p> 标签进行定义的。
<html>
<body>
<p>这是段落。</p>
<p>这是段落。</p>
<p>这是段落。</p>
<p>段落元素由 p 标签定义。</p>
</body>
</html>
HTML 链接
HTML 链接是通过 <a> 标签进行定义的。
<html>
<body>
<a href="http://www.baidu.com">
This is a link</a>
</body>
</html>
注释:在href 属性中指定链接的地址。这点是比上面两个例子多出的地方
HTML 图像
HTML 图像是通过 <img> 标签进行定义的。
<html>
<body>
<img src="1.jpg"width="440" height="589" />
</body>
</html>
结果: