HTML基础
1、文章内容应该放在article标签中,<article> </article>,作者放在author标签中,<author> </author>,时间写在time标签(<time> </time>)中
2、图片标签不要忘了alt属性,便于检索
3、表格元素应该有完整的格式
<table>
<thead>
<tr><th></th> <th></th> <th></th> </tr>
<thead>
<tbody>
<tr><td></td> <td></td> <td></td> </tr>
<tr><td></td> <td></td> <td></td> </tr>
</tbody>
</table>
4、表单元素统一包含在form元素里面,注意养成规范,带有提交的表单元素,form应该加上action属性和method属性,action属性表示表单元素待提交的地址,method属性表示提交的方式。
5、label标签应有for属性,for属性与最近切与name值相同的表单元素匹配
6、与图片相关的信息可以放在figure标签(<figure> </figure>)中,图片的描述最好放在figcaption标签(<figcaption> </figcaption>)中
7、<aside> 标签定义 article 以外的内容。aside 的内容应该与 article 的内容相关。提示:<aside> 的内容可用作文章的侧栏。
8、脚注写在footer标签(<footer> </footer>)中
如有错误,敬请指正,谢谢!