1、網(wǎng)頁鏈接圖標(biāo)
<link rel="shortcut icon" type="image/x-icon" href=""/>
2、標(biāo)簽語義化
①一個頁面只能有一個h1標(biāo)簽
②h1-h6之間不要斷層
③不要用div代替h1-h6
3、圖片語義化
①alt屬性,使搜索引擎知道圖片內(nèi)容???
②title屬性,給用戶看的圖片描述
③figure元素包含圖片和圖注,figcaption包含圖注
4、表格語義化
<table>
<caption>標(biāo)題</caption>
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
<tfoot>
<tr>
<td></td>
</tr>
</tfoot>
</table>
5、表單語義化
①label標(biāo)簽
<label for="name">用戶名</label><input type="text" name="name" id="name"/>
②fieldset與legend標(biāo)簽
6、<br/>只用于段落間的換行,即p標(biāo)簽內(nèi)。不用于元素間間距設(shè)置。
7、img標(biāo)簽和backgroung-image區(qū)別:
如果圖片僅僅起修飾作用,不用被檢索到,則用做背景;否則用img標(biāo)簽愛、。