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.
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
BestWebTutorials.com attempts to post accurate information on this site, but we cannot guarantee that errors do not sometimes occur. The use of code examples from this site in any other site is at the user's own risk. We cannot guarantee that our code might not be in conflict with code written by others, or that our code is fit for other uses.
For further information please review our Terms of Use and Privacy Policy.
Copyright 2005-2008 CrystalClearWeb.net. All rights reserved.

