← Back tothis vs that

<b>, <i> vs <strong>, <em>

Written byPhuoc Nguyen
Created
19 Jun, 2020
Last updated
20 Aug, 2020
Category
HTML
Contributors
jdhines
JezDriver
The `b` and `strong` tags by default make text bold. The `i` and `em` tags by default make text italicized.
Each browser has its own default styles, but result in similar appearances. Here is how they are styled in the popular browsers:
css
strong,
b {
font-weight: bold;
}
i,
cite,
em,
var,
address,
dfn {
font-style: italic;
}
css
b,
strong {
font-weight: bolder;
}

i,
cite,
em,
var,
dfn {
font-style: italic;
}
css
strong,
b {
font-weight: bold;
}
i,
cite,
em,
var,
address,
dfn {
font-style: italic;
}
Despite the fact that their appearances are similar, the `strong` and `em` tags add extra semantic meaning to the enclosed text, whereas `b` and `i` are purely visual.
According to the HTML 5 specifications, the `strong` and `em` tags indicate importance and emphasis respectively.
As far as accessibility goes, while a particular screen reading software may or may not pronounce it differently, using `<strong>` or `<em>` at least opens the possibility, whereas a screen reader will never pronounce text within `<b>` or `<i>` differently.
If you found this post helpful, please consider giving the repository a star on GitHub or sharing the post on your favorite social networks 😍. Your support would mean a lot to me!

Questions? 🙋

Do you have any questions about front-end development? If so, feel free to create a new issue on GitHub using the button below. I'm happy to help with any topic you'd like to learn more about, even beyond what's covered in this post.
While I have a long list of upcoming topics, I'm always eager to prioritize your questions and ideas for future content. Let's learn and grow together! Sharing knowledge is the best way to elevate ourselves 🥷.
Ask me questions

Recent posts ⚡

Newsletter 🔔

If you're into front-end technologies and you want to see more of the content I'm creating, then you might want to consider subscribing to my newsletter.
By subscribing, you'll be the first to know about new articles, products, and exclusive promotions.
Don't worry, I won't spam you. And if you ever change your mind, you can unsubscribe at any time.
Phước Nguyễn