Bold text: choose the meaning before the appearance
By Gyata Tabiri · Revised October 30, 2026
Typography draws attention, but the markup needs to explain why the text deserves it. I separate visual weight from importance so a design choice does not stand in for missing meaning.
Use strong for importance
The strong element marks importance, seriousness, or urgency. A warning is a possible use. The wording still needs to explain the warning clearly; a tag cannot supply missing instructions or make an ambiguous sentence understandable.
Use b for attention without added importance
The b element draws attention for a practical purpose without asserting extra importance. It is not meaningless HTML. A product name in a review is one possible example. If the change is purely a visual style, a class may be the clearer choice.
Do not promise a particular announcement
Assistive-technology presentation depends on the tool and settings. Replacing b with strong does not guarantee spoken emphasis, and b does not make its text disappear from a screen reader. Critical information must remain clear in the content and the surrounding interaction.
Review the hierarchy
Use a heading for a heading rather than a bold paragraph. Use emphasis when the stress changes the intended expression. The practical aim is a document whose structure and wording communicate the importance even when the visual styling changes.
For content and development teams, that distinction helps keep headings, warnings, emphasis, and visual styling purposeful. It is a detail worth getting right without making a larger claim than the element supports.
HTML structure and review · Discuss a role or project
Reference: HTML text-level semantics.