关于html标签的使用

推荐使用的元素

1. 结构元素:blockquote, body, br, div, h1 - h6, head, hr, html, p (article, aside, details, figcaption, figure, footer, header, hgroup, nav, seciton, summary)
2. 头部元素:base, link, meta, script, style, title
3. 列表元素:ul, ol, li, dl, dt, dd (menu)
4. 文本格式元素:a, abbr, acronym, address, bdo, cite, code, del, dfn, em, ins, kbd, noscript, pre, q, samp, small, span, strong, sub, sup, var (mark, meter, progress, time)
5. 表单元素:button, fieldset, legend, form, input, label, optgroup, option, select, textarea (keygen, output)
6. 多媒体元素:area, img, map, object, param (audio, canvas, embed, source, track, video)
7. 表格元素:caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr
8. 窗体元素:iframe

不推荐使用的元素

1. 结构元素:无
2. 头部元素:无
3. 列表元素:dir, menu
4. 文本格式元素:b, basefont, big, blink, center, comment, font, i, marquee, nobr, plaintext, ruby, s, strike, u, wbr, xmp
5. 表单元素:isindex
6. 多媒体元素:applet, bgsound, embed, noembed
7. 表格元素:无
8. 窗体元素:frame, frameset, noframes

转世重生的元素

1. s - 表示 sprite, 可以用 <s></s> 来做 icon 的占位元素
2. b - 表示 border, 可以用来作为圆角的占位元素
3. i - 预留,尚未想到合理的复活理由
4. u - 预留,尚未想到合理的复活理由

 

PS:参考淘宝有关reset方面的资料

posted on 2012-03-15 09:57  jndream  阅读(249)  评论(0编辑  收藏  举报