You are here: Re: How to change colors in text using css? « HTML « IT news, forums, messages
Re: How to change colors in text using css?

Posted by Jukka K. Korpela on 09/30/07 11:09

Scripsit not_bad:

> Wow! Span is the trick!?

No, and span isn't CSS at all. The color property is the "trick".
Surprising, is it not?

Use of span is a usual sign of lack of understanding of markup issues,
though if giving abstract advice to a generic question, formulated in
foobarish (aka Lorem ipsum), there's little else one can use, since any
other inline element could be semantically _wrong_. The span element is
_meaningless_, i.e. semantically empty.

However, you could just as well use <font
class="serengeti">Serengeti</font>, being somewhat honest about it: you are
just thinking in terms of coloring words, not in terms of expressing
semantic or structural relationships.

If you want to save typing, <a class="serengeti">Serengeti</a> would be an
interesting option.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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