HTML <b> 標籤
更多“自己嘗試”的例子見下文。
定義和用法
the <b>
tag specifies bold text without any extra importance.
提示和註釋
注意:根據 HTML5 規範,<b>
標籤應作為最後的手段使用,當沒有其他標籤更合適時。規範指出,標題應使用 <h1> 到 <h6> 標籤表示,強調文字應使用 <em> 標籤表示,重要文字應使用 <strong> 標籤表示,標記/高亮文字應使用 <mark> 標籤表示。
提示: 您也可以使用以下 CSS 來設定粗體文字:“font-weight: bold;”。
瀏覽器支援
元素 | |||||
---|---|---|---|---|---|
<b> | 是 | 是 | 是 | 是 | 是 |
全域性屬性
the <b>
tag also supports the Global Attributes in HTML.
事件屬性
the <b>
tag also supports the Event Attributes in HTML.
更多示例
相關頁面
HTML 教程:HTML 文字格式化
HTML DOM 參考: Bold Object
預設 CSS 設定
Most browsers will display the <b>
element with the following default values