View Single Post
Old 02-21-2017, 05:09 AM   #43
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JSWolf View Post
<em> and <i> are the same thing. Both italicize the text.

[...]

There is NO difference between <i> & <em> and <b> & <strong>.
chaot is in the right here. HTML5 has gone back from saying <i> and <b> is "purely presentational" to giving them semantic meanings.

The article below goes into more detail with some examples:

http://html5doctor.com/i-b-em-strong-element/

You may also want to read W3C's page, "Using <b> and <i> elements":

https://www.w3.org/International/que...a-b-and-i-tags

Quote:
Originally Posted by JSWolf View Post
I can change <i> so it look bold and I can change <b> so it looks italicized. <em> and <strong> can also be modified via CSS. Both pairs have the same default. So really, the pairs are no different.
While <i>+<em> and <b>+<strong> typically default to the same look (italics and bold), that doesn't mean they always do (think screen readers).

Also, there could potentially be differences in Text-to-Speech engines. <em> might be spoken with more emphasis on the words, while <i> could be spoken normally.

Last edited by Tex2002ans; 02-21-2017 at 05:12 AM.
Tex2002ans is offline   Reply With Quote