<b> or <strong>? Treat <b> Tag As Companies Treat Programmers!

Tom Smykowski
5 min readDec 25, 2023
An illustration showing a beach, my photo, HTML logo and the title

Thank you b tag for applying to our company. We’ll run some tests to see if you deserve to become a strong tag

There’s a lot of stigma around the b tag. Usually no one is talking when you should use one or another. Often I see tips that b should not be used at all, and strong tag should be used instead.

For the visual user these tags are the same. Both make the text bold, just like if you applied font-style: bold.

So should we really use strong everywhere? To not seem like we use an obsolete b tag and not being ridiculed by the peers?

Actually, the truth about what tag to use is more complicated, but really easy to understand.

Let’s go through the important aspects. Some focus on only one, that’s why they don’t see the whole picture!

Technical Aspect

Fortunately for us, HTML is beautifully specified language and we have a source of truth on this one.

Here’s how b tag is described:

The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an…

--

--

Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.