HTML 5 <b> 标签

定义和用法

<b> 标签定义粗体的文本。

<b> 标签定义了文本中的部分比其余的部分更重要,并呈现为粗体。

HTML 4.01 与 HTML 5 之间的差异

没有区别。

但是在 HTML 4.01 中,我们的理解是使用 CSS 来制作粗体的文本。在 HTML 5 中,我们仍然可以这么理解,不过我们应该使用 <b> 标签定义文本中更重要的部分。

示例

The house with the <b>red</b> door

标准属性

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title

事件属性

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload