liveBook · Manning

B element

As explained in Build a Website with ChatGPT

The b element is an HTML element that draws attention to text without assigning it strong importance or emphasis.

The b element marks text that deserves visual attention because it is a keyword or has a distinct role, without declaring it important or adding emphasis. Browsers usually render its content in bold. section 12.2.6

Mark menu commands

Use <b> around words such as menu names and commands: “To save your work, pull down the <b>File</b> menu and then click <b>Save</b>.” section 12.2.6

Choose the element that matches the meaning of the text:

  • Use b for keywords, names, or interface labels that differ from surrounding text. section 12.2.6
  • Use strong when the text is important, em when it needs added stress, and i for alternative text such as a book title. section 12.2.6 section 12.6

How Build a Website with ChatGPT covers it

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 it assumes
Assumes basic HTML text markup while distinguishing semantic roles for b, strong, em, and i.
What you can do after
Apply it by wrapping keywords or interface labels in b tags and checking their bold browser rendering.
How it connects
Contrasts b with strong for importance, em for stress, and i for alternative text.

Also explained in

Compare how 2 books explain b element →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Website with ChatGPT. The section links point to the parts of the book it draws on.