HTML5 b和i標(biāo)記將被賦予真正的語義
發(fā)布時間:2009-07-16 13:34:32 作者:佚名
我要評論

b 和 i 標(biāo)簽在現(xiàn)在的 Web 標(biāo)準(zhǔn)潛規(guī)則中是不推薦使用,甚至是反對使用的,因為認為他們只是“表現(xiàn)”粗體和斜體,而沒有任何“語義”。更多的用 strong 和 em 標(biāo)簽代替。
而在新的 HTML5 工作草案 中對于 b 和 i 標(biāo)簽是這樣定義的:
以下是代碼片段:
b 和 i 標(biāo)簽在現(xiàn)在的 Web 標(biāo)準(zhǔn)潛規(guī)則中是不推薦使用,甚至是反對使用的,因為認為他們只是“表現(xiàn)”粗體和斜體,而沒有任何“語義”。更多的用 strong 和 em 標(biāo)簽代替。
而在新的 HTML5 工作草案 中對于 b 和 i 標(biāo)簽是這樣定義的:
以下是代碼片段:
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 a review, or other spans of text whose typical typographic presentation is emboldened.
// b 元素現(xiàn)在描述為在普通文章中僅從文體上突出的不包含任何額外的重要性的一段文本。例如:文檔概要中的關(guān)鍵字,評論中的產(chǎn)品名?;蛘叽韽娬{(diào)的排版方式。
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 idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.
// i 元素現(xiàn)在描述為在普通文章中突出不同意見或語氣或其他的一段文本,例如:一個分類名稱,一個技術(shù)術(shù)語,一個外語中的諺語,一個想法等?;蛘叽硇斌w的排版方式。
從規(guī)范中可以注意到:b 和 i 元素將被賦予真正的語義。更應(yīng)有預(yù)見性注意 b 、i 與 strong 、em 的不同使用 。
而在新的 HTML5 工作草案 中對于 b 和 i 標(biāo)簽是這樣定義的:
以下是代碼片段:
復(fù)制代碼
代碼如下: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 a review, or other spans of text whose typical typographic presentation is emboldened.
// b 元素現(xiàn)在描述為在普通文章中僅從文體上突出的不包含任何額外的重要性的一段文本。例如:文檔概要中的關(guān)鍵字,評論中的產(chǎn)品名?;蛘叽韽娬{(diào)的排版方式。
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 idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.
// i 元素現(xiàn)在描述為在普通文章中突出不同意見或語氣或其他的一段文本,例如:一個分類名稱,一個技術(shù)術(shù)語,一個外語中的諺語,一個想法等?;蛘叽硇斌w的排版方式。
從規(guī)范中可以注意到:b 和 i 元素將被賦予真正的語義。更應(yīng)有預(yù)見性注意 b 、i 與 strong 、em 的不同使用 。
相關(guān)文章
html5標(biāo)記文字_動力節(jié)點Java學(xué)院整理
這篇文章主要為大家詳細介紹了html5標(biāo)記文字的相關(guān)資料,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-07-11- 眾所周知,HTML是互聯(lián)網(wǎng)有史以來最偉大的發(fā)明,HTML5的目的就是要根據(jù)目前互聯(lián)網(wǎng)的狀況對其進行改進2012-12-13
- 在html 5增加了新元素header、footer,測試過發(fā)現(xiàn)IE不能解析html 5新增的元素。 代碼如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"2008-10-17
- 這篇文章主要介紹了HTML5超文本標(biāo)記語言的實現(xiàn)方法,本文給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-09-24