From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/html/element/b/index.html | 169 ++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 files/zh-cn/web/html/element/b/index.html (limited to 'files/zh-cn/web/html/element/b') diff --git a/files/zh-cn/web/html/element/b/index.html b/files/zh-cn/web/html/element/b/index.html new file mode 100644 index 0000000000..e01455a131 --- /dev/null +++ b/files/zh-cn/web/html/element/b/index.html @@ -0,0 +1,169 @@ +--- +title: +slug: Web/HTML/Element/b +tags: + - HTML + - HTML 文本等级语义 + - HTML 流内容 + - HTML 表述内容 + - Web + - 元素 + - 参考 +translation_of: Web/HTML/Element/b +--- +

HTML提醒注意(Bring Attention To)元素(<b>用于吸引读者的注意到该元素的内容上(如果没有另加特别强调)。这个元素过去被认为是粗体(Boldface)元素,并且大多数浏览器仍然将文字显示为粗体。尽管如此,你不应将 <b> 元素用于显示粗体文字;替代方案是使用 CSS {{cssxref("font-weight")}} 属性来创建粗体文字。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
内容分类Flow content, phrasing content, palpable content.
允许的内容Phrasing content.
标签略写{{no_tag_omission}}
允许的父元素任意可容纳 phrasing content 的元素
Permitted ARIA roles任意
DOM 接口{{domxref("HTMLElement")}}
+ +

属性

+ +

这个元素只包含全局属性

+ +

使用说明

+ + + +

例子

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

结果

+ +

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.

+ +

规范

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'semantics.html#the-b-element', '<b>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-b-element', '<b>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'present/graphics.html#h-15.2.1', '<b>')}}{{Spec2('HTML4.01')}} 
+ +

浏览器兼容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

相关链接

+ + + +
{{HTMLRef}}
-- cgit v1.2.3-54-g00ecf