<b> Bold Tag Syntax

Rules for coding HTML b elements
<body>
   ...
   ... phrasing content expected ...<b>... phrasing content ...</b>...
   ...
</body>
Rules for coding HTML b elements

Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.

  1. Code the b element for bold text where phrasing content is expected.
  2. Begin the b element with a starting <b> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the xmlns attribute on the <html> tag.
  3. Include any HTML global attributes on the <b> tag as appropriate.
  4. Inside the b element, between the starting <b> tag and the ending </b> tag, code the inner HTML phrasing content with the text that is to appear in bold.
  5. End the b element with a matching </b> closing tag.
Content Model
Content of the b element

The content of the b element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.