<title> </title>标签上文字
标题 <h1> </h1> heading
分段 <p> </p> part
超链接 <a href="url"> </a> anchor hypertextreference
图像 <img src="" width="" height="" /> image source
<img src="1.gif alt="1"> alt用来在图像载入不了时替换它的意思,让别人明白
空格 non-breaking space
空行/换行 <br /> blank rule
横线 <hr /> horizontal rule
表格 <table>
<tr> table row
<td> </td> table data
</tr>
</table>
属性 border rowspan colspan cellspacing text-align
样式 style="text-align: ;background-color: ;font-family: ;color: ;font-size: ;"
文本格式化标签
<b> 定义粗体文本。bold
<big> 定义大号字。
<em> 定义着重文字。emphasis
<i> 定义斜体字。italic
<small> 定义小号字。
<strong> 定义加重语气。
<sub> 定义下标字。subscripted
<sup> 定义上标字。superscripted
<ins> 定义插入字。insert
<del> 定义删除字。delete
<strike> 或者 <s> 删除线 strikethrough
引用 <q> </q> quotation
长引用 并且自动缩进<blockquote> <blockquote>
定义缩写的意义 <abbr title="World Health Organization">WHO</abbr> abbreviation
注释 <!-- -->
<; >; less than ,greater than 当需要在网页上显示代码的括号上时用这个代替括号
无序列表
<ul> unordered list
<li> list item
</li>
</ul>
有序列表
<ol> ordered list
<li>
</li>
</ol>
自定义列表
<dl> define list
<dt> define term</dt>
<dd> define define</dd>
</dl>
a标签的锚点定位:一是通过ID。二是通过<a>标签本身的name属性来查找
<a href="" target=""></a> 链接 target为打开链接的方式
例如在两个页面中的锚点定位跳转:
<p><a href="content.html#a1">行宫(元稹)</a></p> #index.html
<h1 id="a1">行宫</h1> #content.html
网友评论