The <b> and <i> tags are semantic in HTML5
What the bold and italic tags mean in HTML5, and when to use them instead of strong and em.
HTML5 gave <b> and <i> their own meaning, beyond “make it bold/italic”. For years I treated them as presentational leftovers and used <strong> and <em> instead.
The distinction is about intent:
<strong>conveys importance, seriousness, or urgency.<em>marks stress emphasis that changes the meaning of a sentence.<b>draws attention to text for utilitarian reasons without extra importance, e.g. keywords in an abstract, product names in a review, or an article lede.<i>represents an alternate voice or mood, e.g. a taxonomic name, a technical term, an idiomatic phrase from another language, a thought, or a ship name.
So the title of a book or a species name gets <i>, not <em>:
The <i>Felis catus</i> is a small carnivorous mammal.
It’s the same glyphs on screen. But <b> and <i> say “this text is set apart”, while <strong> and <em> say “this text matters more”. Using the tag that fits keeps the markup meaningful for screen readers and anyone parsing the document.