You are here: Re: when to use <em> and <strong>? « HTML « IT news, forums, messages
Re: when to use <em> and <strong>?

Posted by Mark Parnell on 01/27/06 01:05

Deciding to do something for the good of humanity, "Jonathan N. Little"
<lws4art@centralva.net> declared in alt.html:

> Depends if you are just highlighting a specific word or phrase then 'em'
> and 'strong' will do but if there is some underlining theme to the
> emphasis then I could see where classes can be very useful, e.g.
>
> .keyword { color: #080; }
> .constant { color: #f00; }
> .command { color: #008; }

No argument there, but...

> <span class="keyword">void</span>
> <span class="constant">NULL</span>
> <span class="command">sub</span>

Better to use <em class="keyword"> etc. That way in non-graphical UAs,
and those that don't support CSS, it will still be emphasised.

--
Mark Parnell
=====================================================
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация