Originally posted by TheRealMVP What's up with the continued use of i and b for italics and bold? Weren't these supposed to go bye-bye in vafor of em and strong?
EM isn't for italic, nor is STRONG for bold. They're for emphasis and strong emphasis.
Myself, I like to use the I element for Latin text, but my wife complains when I do.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Yes, I'm a supermoderator. I'm not an administrator, but I like to pretend that I am. I have my own little administrator cape that I like to wear while I browse the forums.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Originally posted by sharkey I thought em and strong replaced i and b becuase they had a much larger semantic meanging but im ready to be proved wrong.
Then please explain the following:
From the HTML 2.0 Specification <!ENTITY % font " TT | B | I ">
<!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font">
<!ELEMENT (%font;|%phrase) - - (%text)*>
The B, I, EM, STRONG and CITE elements have all been there since the beginning. What has changed is that in the past presentation and semantic mark up were co-equal uses of HTML. The semantic now trumps but the presentation is there just in case. In practice there is never any reason to use TT or B or I - unless you want to use I for Latin, id est: <i lang="la" title="and the rest">id est</i>
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Originally posted by Charles Then please explain the following:
magic
Yes, I'm a supermoderator. I'm not an administrator, but I like to pretend that I am. I have my own little administrator cape that I like to wear while I browse the forums.
Originally posted by Charles EM isn't for italic, nor is STRONG for bold. They're for emphasis and strong emphasis.
That is correct. And they are not meant to plain italicize or bold text but to give emphasis to one word or phrase. If you want to simply italicize or bold text, then the mentioned CSS method should be used; as it is sematecally correct.
One advantage of EM and STRONG is that you can define them in your CSS stylesheet to display as desired. If you change your mind, you just change the stylesheet. (You can similarly change how I and B display, but that could get pretty confusing.)
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Originally posted by PhillMc That is correct. And they are not meant to plain italicize or bold text but to give emphasis to one word or phrase. If you want to simply italicize or bold text, then the mentioned CSS method should be used; as it is sematecally correct.
But first one must ask why italic. If it is to add emphasis, as is likely, then the EM element should be used. If it is to indicate a citation, as is possible, then CITE should be used. Only then can one use I.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Originally posted by Charles But first one must ask why italic. If it is to add emphasis, as is likely, then the EM element should be used. If it is to indicate a citation, as is possible, then CITE should be used. Only then can one use I.
Ah, I forgot about CITE. lol. Total agreement. It's all about semantecs.
Originally posted by PhillMc Ah, I forgot about CITE.
Online translators, like Babelfish, will leave alone anything inside a CITE element, which is what you want. It's not Being and Time it's Sein und Zeit. Correct mark up is always more important than you even realize.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks