Language References
Renders text in boldface type | HTML 2, 3.2, 4, 4.01, 5 |
HTML Syntax
<b
class = classname
id = value
style = css properties
title = text
event = script
>
The B element represents a span of text to which attention is being drawn for practical purposes.
Most browsers render text within <b
> tags in boldface by default.
Authors can use the class attribute on the <b
> element, though, to convey additional semantic information as needed. This makes it easier to manage multiple use cases of the <b
> element.
For example, notice that <b
> tags within the pages in this workshop render in darkgreen, and maroon within code sample snippets.
The <b
> element has no attribute of its own, but supports global attributes common to all HTML elements.
NOTE: Both start and end tags are required.
<p>This paragraph has <b>some bold text</b>.</p>
This paragraph has some bold text.
STRONG