+ 2

Confusing tags of HTML !!

What is the difference between <b> & <strong> tag. There are also some other tags that works same; like - "<ins> & <u>", "<del> & <s>", "<i> & <em>" But why there was need to create two tags that works same ? And which of them are better ?

11th Mar 2018, 7:13 AM
Tanvir Ahmed Rony
Tanvir Ahmed Rony - avatar
6 ответов
+ 13
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.
11th Mar 2018, 7:43 AM
David Carroll
David Carroll - avatar
+ 11
you can read about web accessibility also. Interesting too
11th Mar 2018, 7:49 AM
\__(° = °)__/
+ 8
emphasize, blue
11th Mar 2018, 7:33 AM
\__(° = °)__/
+ 6
well <b> and <strong> works same but <b> is used to make Text bold and <strong> is used to mark a text as important,We see this tag do Same works but browser understand this <strong> code as mark either then bold and goes Same for others
11th Mar 2018, 7:18 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 5
<strong> makes a text BOLD and important, whereas <em> makes a text ITALIC and important. Edit: @4rontender, in terms of output, italic and emphasize have the same sense 😅 But, in literal terms, <em> makes text emphasized and <i> makes text italic as marked by @4rontender :)
11th Mar 2018, 7:30 AM
777
777 - avatar
+ 1
But, if the <em> tag also mark a text as important then is there any difference between <strong> & <em> ?
11th Mar 2018, 7:28 AM
Tanvir Ahmed Rony
Tanvir Ahmed Rony - avatar