首頁  >  文章  >  web前端  >  HTML5中語意化 b 和 i 標籤_html5教學技巧

HTML5中語意化 b 和 i 標籤_html5教學技巧

WBOY
WBOY原創
2016-05-16 15:51:341887瀏覽

b 和 i 標籤在現在的 Web 標準潛規則中是不建議使用,甚至是反對使用的,因為認為他們只是「表現」粗體和斜體,而沒有任何「語義」。更多的用 strong 和 em 標籤代替。
而在新的 HTML5 工作草稿 中對於 b 和 i 標籤是這樣定義的

從規範中可以注意到:b 和 i 元素將被賦予真正的語意。更應有預見性注意 b 、i 與 strong 、em 的不同使用 。
延伸閱讀: HTML4 到 HTML5 的變化 A Preview of HTML 5
The b element now represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in review, document abstract, product names in review, document 5psen 顏色 textor textpter, product names insoo, document 5psen 顏色 textor textpine soopem. is emboldened.
// b 元素現在描述為在普通文章中僅從文體上突出的不包含任何額外的重要性的一段文本。例如:文件概要中的關鍵字,評論中的產品名稱。或代表強調的排版方式。
The i element now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idio maticional from anonomic designation, a technical term, an idio, phrase from an mic , or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.
// i 元素現在描述為在普通文章中突出不同意見或語氣或其他的一段文本,例如:一個分類名稱,一個技術術語,一個外語中的諺語,一個想法等。或代表斜體的排版方式。
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn