3 ms·
> Do not confuse the <b> element with the <strong>, <em>, or <mark> elements. The <strong> element represents text of certain importance, <em> puts some emphasi
by moritzwarhier 4y ago
> Do not confuse the <b> element with the <strong>, <em>, or <mark> elements. The <strong> element represents text of certain importance, <em> puts some emphasis on the text and the <mark> element represents text of certain relevance. The <b> element doesn't convey such special semantic information; use it only when no others fit.
This is really hard to take seriously, even as someone who advocates for semantic HTML.
Surely all these nuances mean something tangible, but I don't see it.
Compared to <b> vs <strong> vs <em>, <mark> and <i> seem comparatively sensible.
- unsafecast 4y agoI agree. I like the idea of semantic HTML with close to no classes, but the standard is really failing here. I generally just use <em>, and very rarely <strong>.