Click to See Complete Forum and Search --> : <i> and <b> versus <em> and <strong>


rooshk34
08-15-2007, 10:57 AM
I've been wondering for awhile whether I should using <i> tags and <b> tags more or if I should be using <em> and <strong> tags. I like to do pretty much all of that stuff in CSS, but I've just been curious about which is more current (or if each should be used differently).

ray326
08-15-2007, 12:18 PM
The former are purely presentational whereas the latter carry semantic meaning so the current best practice would be to use the latter.

rooshk34
08-15-2007, 12:38 PM
That's kind of what I thought. Just for my own curiosity's sake, what difference could it hypothetically make in a Web page?

ray326
08-15-2007, 12:41 PM
It'll make a difference to people that don't view the page with their eyes.

felgall
08-15-2007, 02:28 PM
The semantic use of <i> and <b> is when your page is about typography and you are demonstrating the use of italic and bold versions of fonts.

For situations where you want to apply emphesis use <em> and <strong>. In browsers that display the page these will make the text italic or bold by default while those browsers that speak the text (or use braille etc) will apply an appropriate method of adding emphesis for those browsers.