HTML 标签
每个有效的 HTML 标签、它们的用途以及如何使用。
aabbraddressareaarticleasideaudiobbasebdibdoblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldfndivdldtemembedfieldsetfigcaptionfigurefooterformh1 - h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrbrprtrtcrubyssampscriptsectionselectsmallsourcespanstrongstylesubsuptabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr
按类别
根元素
元数据
区块
分组
文本
aemstrongciteqdfnabbrdatatimecodevarsampkbdmarkrubyrbrtrprtcbdibdospanbrwbrsmallibussubsup
编辑
嵌入式内容
表格
表单
forminputtextareaselectoptionoptgroupdatalistlabelfieldsetlegendbuttonoutputprogressmeterkeygen
脚本
用法
HTML 标签标记 HTML 元素的开始和结束,并且可能包含属性。它们的用法如下:
<tagname>Element content</tagname>
<tagname attributename="attributevalue">Element content</tagname>
<!-- or, for the few attributes without values, simply: -->
<tagname attributename>Element content</tagname>
<!-- or, for the few elements without content, simply: -->
<tagname>
<tagname attributename="attributevalue">
与每个标签一起,都可以使用全局属性,以及每个页面中列出的特定属性。
