1. Home
  2. Computing & Technology
  3. Web Design / HTML

<b></b>

By Jennifer Kyrnin, About.com

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

<b> Description:

The <b></b> tag makes enclosed text bold.

<b> Web Browser Support:

<b> Attributes:

All attributes are optional unless indicated.

<b> End Tag:

</b> REQUIRED

<b> Contents:

CDATA - Any text you want bold. The following tags are valid within the <b> tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, textarea, tt, u, var

<b> Valid Context:

The <b> tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

<b> Usage:

  • Standard bold text.
    This <b>text is bold</b>.
    View

<b> Special Notes:

  • The <b> element is not deprecated, but it is not as accessible as it's counterpart the <strong> element.
  • Many browsers render the <strong> tag in the same fashion as the <b> tag. The <strong> tag is more correct for standards-based XHTML.
  • If you can't use the <strong> element, then you should consider using the CSS font-weight property.

More <b> Information:

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The b Element - bold - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.