HTML 5 <b> 標簽
定義和用法
<b> 標簽定義粗體的文本。
<b> 標簽定義了文本中的部分比其余的部分更重要,并呈現(xiàn)為粗體。
HTML 4.01 與 HTML 5 之間的差異
沒有區(qū)別。
但是在 HTML 4.01 中,我們的理解是使用 CSS 來制作粗體的文本。在 HTML 5 中,我們?nèi)匀豢梢赃@么理解,不過我們應(yīng)該使用 <b> 標簽定義文本中更重要的部分。
例子:
The house with the <b>red</b> door
屬性
標準屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪 HTML 5 中標準屬性。
事件屬性
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
如需完整的描述,請訪 HTML 5 中事件屬性。