← BYTES
HTML·Starter·Ref: 2.1.19
What is the difference between the `<strong>` and `<b>` elements, both of which visually render as bold text?
Have a question about this video? Mention reference 2.1.19 when you contact us.
a.There is no difference; they are purely identical synonyms
b.`<strong>` carries semantic meaning (indicating genuinely important/urgent content, announced differently by screen readers) while `<b>` is purely a stylistic, visually-bold-but-semantically-neutral element
c.`<b>` can only be used inside headings
d.`<strong>` is deprecated in favor of `<b>` in HTML5
Although both typically render identically (bold text) in a default browser stylesheet, <strong> carries real semantic weight that assistive technology can convey differently (e.g., with vocal emphasis), while <b> is explicitly defined in the HTML5 spec as a stylistic-only element with no implied importance -- choosing between them should be based on meaning, not just desired visual appearance.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES2119#HTML