|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 1085478
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-600, Acer 1825PT, Galaxy Tab, PRS-T1, HTC One X, TF700T
|
<em> or <i> & <strong> or <b>
Can someone explain to me what is the difference between them and why I should use one or the other. Also, are there any circumstances where you would mix their use?
__________________
Get 5GB of online storage for free from SugarSync. Click here for an additional 500MB to give you 5.5GB for free. Always have your stuff when you need it with @Dropbox. 2GB account is free! Click here Currently working on updating some of my Lovecraft work after receiving some corrections |
|
|
|
|
|
#2 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,150
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
<em> and <strong> are semantic, <i> and <b> are presentational. <em> means emphasized, and while the default is having emphasized text displayed in italics, you could choose to have it underlined, or red, or in a different font... <i> means italic, and while it is possible to change its appearance with CSS, it would be weird to have an <i> element that's not italic. It's basically a matter of style, with the content and presentation separation encouraged by HTML+CSS, semantic markup is preferred.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 1085478
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-600, Acer 1825PT, Galaxy Tab, PRS-T1, HTC One X, TF700T
|
That makes sense, thanks Jellby.
If I didn't apply any style to <em> and <strong>, I take it that they would used defaults of italic and bold for their behaviour?
__________________
Get 5GB of online storage for free from SugarSync. Click here for an additional 500MB to give you 5.5GB for free. Always have your stuff when you need it with @Dropbox. 2GB account is free! Click here Currently working on updating some of my Lovecraft work after receiving some corrections |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
|
The semantic tags <em> and <strong> are preferred for general html because they work better with audio browsers and other text-to-speech systems. They should default to italic and bold respectively, so there's no practical difference unless you want your content to work well with TTS.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strong rumours Ipad 2 could be available by Christmas | garygibsonsf | News | 22 | 08-19-2010 12:02 PM |
| Over 21K downloads and still going strong | JanG | Writers' Corner | 13 | 02-14-2010 05:39 AM |
| Wood Hard Case - Very Strong | badspell68 | Sony Reader | 5 | 02-19-2009 04:12 PM |
| Looking for a strong case in the US | DesiLinguist | iRex | 0 | 02-19-2009 10:28 AM |