liveBook · Manning

Strong element

As explained in Build a Website with ChatGPT

The strong element is an HTML element that marks content as having strong importance or urgency.

The strong element marks a word, phrase, or sentence as important so it stands out from regular page text. Browsers display its content in bold. section 12.2.6

Mark an urgent instruction

<p>As you enter the room, notice the big, red button to your right. <strong>Never press that button!</strong></p> section 12.2.6

Choose the element according to the role the text plays:

  • Use <strong> for important text, such as a vital instruction or crucial condition. section 12.2.6
  • Use <b> for keywords or distinctive names, such as File or Save, rather than for importance. section 12.2.6
  • Use <em> when the text needs emphasis and <i> for alternative text. section 12.6
<p>
    As you enter the room, notice the big, red button to your right.
    <strong>Never press that button!</strong>
</p>

View the complete paragraph example with the urgent instruction marked up. section 12.2.6

How Build a Website with ChatGPT covers it

How deep it goes
Defines the element, shows its syntax and browser appearance, and contrasts it with keyword, emphasis, and alternative-text markup.
Examples
Demonstrates an urgent button warning inside a paragraph and shows the resulting bold browser display.
What you can do after
Apply it by wrapping important HTML text in opening and closing strong tags.
How it connects
Contrasts with the b element for keywords and the em and i elements for emphasis and alternative text.

Also explained in

Compare how 2 books explain strong 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.