B element
The HTML b element marks text as stylistically distinct without conveying strong importance or emphasis.
Build a Website with ChatGPT
The b element is an HTML element that draws attention to text without assigning it strong importance or emphasis.
- How it is used
- Marks keywords, names, and interface labels that need attention without assigning importance or emphasis.
- How deep it goes
- Defines the element, shows its bold browser rendering, and distinguishes its subtle semantics from strong and em.
- Examples
- Uses product names, company names, celebrity names, article openings, menu labels, and commands as keyword examples.
- What you can do after
- Apply it by wrapping keywords or interface labels in b tags and checking their bold browser rendering.
Design for Developers
The HTML b element draws attention to text without conveying that the text has greater importance.
- How it is used
- Draws attention to words through bold styling without marking them as more important.
- How deep it goes
- Distinguishes <b> from <strong> and CSS font-weight, but does not detail implementation beyond basic markup and styling.
- Examples
- Uses highlighted words, semantically important text, and Figure 8.12 to contrast attention with importance.
- What you can do after
- Apply it to draw attention, choosing <strong> when importance is intended and CSS when emphasis is purely visual.
Related concepts
- strong elementcontrasts with · The HTML strong element marks content as having strong importance, seriousness, or urgency.
- font-weightcontrasts with · Font weight is a typographic property specifying the relative thickness or visual heaviness of text glyphs, commonly through named or numeric values.
- HTML tagkind of · An HTML tag is angle-bracket-delimited markup that identifies, structures, or marks the boundary of an element in an HTML document.
- keywordaddresses · A keyword is a word or phrase with special significance for representing a topic, information need, content relevance, or syntactic role.
- HTML elementkind of · An HTML element is a component of an HTML document, defined by markup and represented in the document structure, with permitted attributes, content, and semantics.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

