asp.net.ph

Skip Navigation Links

B Element | B Object

Language References


Renders text in boldface typeHTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

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.

Attributes

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.

Example

<p>This paragraph has <b>some bold text</b>.</p>

This paragraph has some bold text.

See Also

STRONG



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note