What's the difference between em/i and strong/b
I learned HTML before and I always learned to italicize with the tags and makes things bold with tags. Where are the and tags coming from? Why they are teaching this way?
Answer 504115bcdf43c70002003a7f
I think that the whole point of modern development is to try to separate the presentational from the structure and logic. That’s why we have an html file, a css file and a js file.
The strong tag doesn’t mean bold, it just denotes the importance of the sentence in the context, the same goes for the emphasis tag.
B an I are not deprecated in html5 just because the thought behind html5 development was to have a strong backward compability. But it’s not recommended.
Greetings.
Answer 5041175801a1b400020049cc
Answer 504b7b68b864a8000204e0c0
This is a good in-depth explanation of the issue, if anyone wants to read more: http://stackoverflow.com/questions/271743/whats-the-difference-between-b-and-strong-i-and-em
General consensus is that ‘em’ and ‘strong’ should be used as they indicate semantic meaning (i.e. ‘This text or word is more important than the others’) as well as how the text should look (i.e. ‘This word should be bold or italic’), whereas ‘b’and ‘i’ only do the latter.
As the link explains, ‘b’ and ‘i’ may suffice for the web, but they may cause intelligibility problems for HTML pages displayed on other devices such as PDAs and mobiles.
1 comments
Hah. Now I see what semantic difference really means. Thanks.
Answer 4f8b4d468ae044000301f5ed
In fact, there’s only some formal semantic difference that is unseen to the user, so you can use any tag you want (I prefer using “i” and “b” because they are short). “b” and “i” tags are NOT deprecated in HTML5 and I think that using CSS for making text bold or italic is lame.
Answer 50411aba3023580002005723
I wrote about formal semantic difference in my comment. Sebastian says exactly the same - that ‘strong’ is not just for making bold but for also for some hidden sense that can be read while checking the source code (cause ordinary user won’t see whether you used ‘strong’ or something else and won’t understand what the use of ‘strong’ means - he doesn.t need to learn html to visit your site). All right then - I’ll use ‘b’ - an ordinary tag for making text bold. I don;t have a need in user who tries to hide some hidden sences. :)
And, yes, I’ll prefer shortcuts and guess, someday ‘strong’ and ‘em’ will be deprecated - not ‘b’ and ‘i’. ;)
Popular free courses
- Free course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner Friendly4 Lessons - Free course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner Friendly11 Lessons - Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner Friendly6 Lessons