HTML标题标签
HTML标题是通过< h1>~< h6>等标签进行定义的
实例
<h1>This is a h1 heading </h1>
<h2>This is a h2 heading</h2>
<h3>This is a h3 heading</h3>
<h4>This is a h4 heading</h4>
<h5>This is a h5 heading</h5>
<h6>This is a h6 heading</h6>
效果
<h1>This is a h1 heading </h1>
<h2>This is a h2 heading</h2>
<h3>This is a h3 heading</h3>
<h4>This is a h4 heading</h4>
<h5>This is a h5 heading</h5>
<h6>This is a h6 heading</h6>
HTML段落
HTML段落是通过< p>标签进行定义的
实例
<p>This is a paragraph</p>
<p>This is a another paragraph</p>
效果
<p>This is a paragraph</p>
<p>This is a another paragraph</p>
HTML 链接
HTML链接是通过< a>标签进行定义的
实例
<a href="http://www.baidu.com">This is a link</a>
效果
<a href="http://www.baidu.com">This is a link</a>
在 href 属性中指定链接的地址。
HTML 图像
HTML图像是通过< img>标签来进行定义的
实例
<img src="http://www.027hpedu.com/uploads/allimg/121218/6-12121P94322R2.jpg" width=300 height=200 />
效果
<img src="http://www.027hpedu.com/uploads/allimg/121218/6-12121P94322R2.jpg" width=300 height=200 />
图像的名称和尺寸是以属性的形式提供的