b ElementThe b element is an inline element declared by the XHTML 1.1 Presentation Module (Inline Presentation)
Elements in the Presentation Module are:big | small | sub | sup | i | b | tt (Inline Presentation Support Module)hr (Block Presentation Support Module)
The b element indicates that a section of text is to be rendered in bold face.
For example:
<p>This is <b>bold face text</b>
embedded in a normal paragraph.</p>
This code is rendered as follows:
This is bold face text embedded in a normal paragraph.
In many instances, the use of this element is discouraged in favour of a more
semantically informative element, which also has meaning in non-visual browsers.
For instance, b would in most cases be better substituted by
strong unless the bold facing has only visual
significance and is not meant to place any additional emphasis upon the text. However, if it's only
for visual effect, then the bold-facing would be better controlled using CSS,
so that content and presentation are well separated; personally I would not use the b element,
but instead the CSS declaration font-style:bold.
See also the i element.
There are no #REQUIRED attributes on the b element.
There are no specific attributes declared on the b element.
b element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
b element is:
( #PCDATA | Inline.mix )*
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
babbr, acronym, br, cite, code, dfn, em, kbd, q, samp, span, strong, varabutton, input, label, select, textareaimgb, big, i, small, sub, sup, ttmapnoscript, scriptdel, insbdoobjectrubybabbr, acronym, address, cite, code, dfn, div, em, h1 - h6, kbd, p, pre, q, samp, span, strong, varadd, dt, licaption, td, thbutton, fieldset, label, legendb, big, i, small, sub, sup, ttdel, insbdoobjectrb, rt