国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > HTML5 > 正文

HTML5中語義化 b 和 i 標簽

2024-09-05 07:19:39
字體:
來源:轉載
供稿:網友

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 a review, or other spans of text whose typical typographic presentation 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 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 元素現在描述為在普通文章中突出不同意見或語氣或其他的一段文本,例如:一個分類名稱,一個技術術語,一個外語中的諺語,一個想法等。或者代表斜體的排版方式。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 海城市| 江北区| 师宗县| 砀山县| 綦江县| 和静县| 太仆寺旗| 泰和县| 六盘水市| 河间市| 灵宝市| 田林县| 邵东县| 安泽县| 巨野县| 宁城县| 东源县| 如东县| 云浮市| 苏州市| 博白县| 乐平市| 浪卡子县| 工布江达县| 安乡县| 天祝| 宁河县| 融水| 建湖县| 石渠县| 丹寨县| 泾川县| 清涧县| 兴安盟| 莲花县| 东丰县| 汉川市| 讷河市| 姜堰市| 中西区| 平谷区|