Text Content

HTML <b> element

Draws attention to text without conveying additional importance. Use strong for importance or em for stress emphasis. Use b for attention without additional semantic importance, for example a keyword in a summary. To emphasize importance use strong; to apply font weight alone use CSS. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<b>Keyword</b>

Return Value

HTMLElement

Content model: Phrasing content, with element-specific restrictions.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <p>      Search results for      <b>garden</b>      .    </p>  </body></html>
HTML Reference