BestWebTutorials.com
A service of CrystalClearWeb.net
 
Web BestWebTutorials.com

XHTML - <b> </b> Bold Text Tag

Definition

The <b> </b> tag pairs define a bold text element. If the ending tag is not specified, the bold text will end at the end of the parent element - <p>, <td>, etc.

The usage of the <b> </b> tag pair produces similar (if not identical) results to the use of the <strong> </strong> tag pair.

You can see a comparison of several tag pairs that modify the appearance of text here.

Example

<p>In this paragraph <b>this text</b> is in a bold font.</p>

Output

In this paragraph this text is in a bold font.

Attributes

The following events may be attached to a bold text element:

  • id
  • title
  • class
  • style
  • dir *
  • lang *
  • xml:lang * 

The attributes marked with an asterisk are kind of useless. Please see our <b (attr)="..."> page for working examples.

Events

The following events may be attached to a bold text element:

  • onclick
  • ondblclick
  • onmousedown
  • onmouseup
  • onmouseover
  • onmouseout
  • onmousemove *
  • onkeypress *
  • onkeydown *
  • onkeyup *

The events marked with an asterisk are kind of useless. Please see our <b (event)="..."> page for working examples.
 

Return to XHTML Tags List

BestWebTutorials.com is a free service of CrystalClearWeb.net. You can help us keep providing free tutorials and information by:

  • Link to us
  • Tell a friend
  • Correct any  you might find
  • Make for improvement
  • Make a donation


web services byCrystalClearWeb.net