What is the difference between bold tag and strong tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between bold tag and strong tag?

30th Sep 2019, 1:01 AM
Md. Shakib Mahamud
Md. Shakib Mahamud - avatar
4 Answers
+ 11
Short answer: Avoid using <b>, which is a legacy tag replaced by <strong> in HTML5 for semantic alternative. You can see my more detailed explanations in these other questions: https://www.sololearn.com/Discuss/1134758/?ref=app Answer: -------- Semantic HTML introduced new tags that focused on describing what the text means rather than what it looks like. So <strong> replaces <b> because the new tag doesn't describe the format of the text. Now, it won't be strange if strong doesn't mean bold anymore. Rather, it could be underlined and italics via CSS without having to change the tag to fit the format. The tags describing format should be avoided. They have been around for many years and should be deprecated at some point. ---- Here's another post where I explained more about semantic HTML5: https://www.sololearn.com/Discuss/1851537/?ref=app
30th Sep 2019, 3:33 AM
David Carroll
David Carroll - avatar
+ 3
If interpreted via a non visual browser, the strong tag can result in some emphasis whereas it would not be the case for the bold tag.
30th Sep 2019, 3:25 AM
Sonic
Sonic - avatar
+ 3
Thanks David Carroll for sharing informative answer with explanation👌😊
30th Sep 2019, 3:41 AM
D Shah 🎯⏳️
D Shah 🎯⏳️ - avatar
+ 2
none, really, it's the same thing :V, I don't know why this two exist, probably one came from an older version of HTML, and the other came from HTML5, but to make sure there is no error on old sites, the two still exist.
30th Sep 2019, 2:45 AM
Wardy Spirit
Wardy Spirit - avatar