b tag (XHTML 1.0)

bold text style

Topics

The b tag is used to achieve a bold text style. The tag is extremely easy to use:

<b>Bold text style</b>

The result looks like this:

 

Bold text style

 

The font-weight CSS property can be used as an alternative, on any tag with the style, class or id attribute. It offers several value variations, to control just exactly how bold the text should be.

Attributes

Attribute Deprecated Required Description
class  space-separated list of classes 
dir  direction for weak/neutral text 
id  document-wide unique id 
lang  language code 
style  associated style info 
title  advisory title 

Events

Event Description
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2012