HTML <b> tag

The <b> tag is used to make text bold.

This tag has no attributes specific to it.

Standard attributes

class, dir, id, lang, style, title, xml:lang

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress, onkeyup

For more information on event attributes, check out our HTML event attributes reference page.

Example

Haven't you heard that <b>the bird is the word</b>? <b>Bold text</b> sure does <b>stand</b> out from the <b>other text</b> on a <b>page</b>
Output:
Haven't you heard that the bird is the word? Bold text sure does stand out from the other text on a page

Tips & notes

Don't overuse the <b> tag. This tag is meant to highlight just a few important words here and there, not entire paragraphs or pages. Use the <b> tag rarely, only when you want to emphasize some text.

It's better to use CSS to style text than text formatting tags like <b>.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation