美文网首页
HTML的基础

HTML的基础

作者: H_jb23 | 来源:发表于2018-02-06 22:35 被阅读0次

HTML 标题

HTML 标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。(注意:从h1到h6,字体从大到小)
实例:

<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

HTML 段落

HTML 段落是通过 <p> 标签进行定义的。
实例:

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

HTML 链接

HTML 链接是通过 <a> 标签进行定义的。
实例:

<a href="http://www.w3school.com.cn">This is a link</a>

注释:在 href 属性中指定链接的地址。

HTML 图像

HTML 图像是通过 <img> 标签进行定义的。
实例:

<img src="w3school.jpg" width="104" height="142" />
注释:图像的名称和尺寸是以属性的形式提供的。

相关文章

网友评论

      本文标题:HTML的基础

      本文链接:https://www.haomeiwen.com/subject/mzpnzxtx.html