亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
characters

HTML <b>元素表表示相對于普通文本字體上的區(qū)別,但不表示任何特殊的強調(diào)或者關(guān)聯(lián),通常以粗體顯示。

內(nèi)容類別

流量內(nèi)容,措辭內(nèi)容,可觸及的內(nèi)容。

允許的內(nèi)容

短語內(nèi)容。

標(biāo)記遺漏

沒有,起始和結(jié)束標(biāo)簽都是強制性的。

允許父母

任何接受短語內(nèi)容的元素。

允許ARIA角色

任何

DOM界面

HTMLElement包括Gecko 1.9.2(Firefox 4),F(xiàn)irefox實現(xiàn)這個元素的HTMLSpanElement接口。

屬性

這個元素只包含全局屬性。

使用說明

  • 在摘要中的關(guān)鍵字,評論中的產(chǎn)品名稱或其他典型文字的文字的粗體字符中使用<b>。

  • 不要將<b>元素與 <strong>,<em><mark>元素混淆。<strong>元素表示某些重要性的文本,<em>強調(diào)文本,而<mark>元素表示某些相關(guān)性的文本。 <b>元素不傳達(dá)這樣的特殊語義信息;僅在沒有其他合適的元素時使用它。

  • 類似的,也不要用 <b> 元素來標(biāo)記標(biāo)題。如果需要表示標(biāo)題,請使用 <h1> 到 <h6> 標(biāo)簽。此外,可以通過樣式表來改變這些元素的的默認(rèn)樣式,結(jié)果就是它們并不一定都是粗體。

  • 通過在 <b> 元素上添加 class 屬性來表示額外的語義信息是一個很好的方式(例如 <b class="lead"> 來表示段落中的第一句)。這使得網(wǎng)頁文檔的樣式開放變得輕松,并且不用修改 HTML 代碼。

  • 以前 <b> 元素的意思就是讓文本變成粗體。但從 HTML4 開始,不贊成標(biāo)簽表示樣式信息,于是 <b> 元素的含義發(fā)生了變化。

  • 如果不是出于語義目的而使用 <b> 元素,那么讓文本顯示粗體更好的方式是使用 css 屬性 font-weight 并且設(shè)置值為 bold。

例子

<p>
  This article describes several <b class="keywords">text-level</b> elements.
  It explains their usage in an <b class="keywords">HTML</b> document.   </p>Keywords are displayed with the default style of the <b>element, likely in bold.

運行結(jié)果

This article describes several text-level elements. It explains their usage in an HTML document.

Keywords are displayed with the default style of the <b> element, likely in bold.

規(guī)范

規(guī)范

狀態(tài)

評論

HTML Living Standard該規(guī)范中'<b>'的定義。

生活水平


HTML5該規(guī)范中'<b>'的定義。

建議


HTML 4.01規(guī)范該規(guī)范中'<b>'的定義。

建議


瀏覽器兼容性

Feature

Chrome

Edge

Firefox (Gecko)

Internet Explorer

Opera

Safari

Basic support

(Yes)

(Yes)

1.0 (1.7 or earlier)

(Yes)

(Yes)

(Yes)

Feature

Android

Edge

Firefox Mobile (Gecko)

IE Mobile

Opera Mobile

Safari Mobile

Basic support

(Yes)

(Yes)

1.0 (1.0)

(Yes)

(Yes)

(Yes)

Previous article: Next article: