"Lachlan Hunt" <sp***********@gmail.com> wrote in message
news:42***********************@per-qv1-newsreader-01.iinet.net.au...
kaeli wrote: .green {color:green;}
That doesn't really seperate structure and content from the presentation
does it, it simply stacks another layer on top of it. What happens when
the author decides to use a new theme and green is no longer
appropriate? Should all the markup be changed to match, or just the CSS
(which would make it inconsistent and confusing.)
eg.
.green { color: red; } ???
<span class="green">this text is green</span>
It depends what you are trying to markup, not what you want it to look
like. If, for example, you want emphasis to be shown in green, you
could use
<em>emphasised text</em>
em { color: green; }
http://www.w3.org/QA/Tips/goodclassnames
--
Lachlan Hunt
After reading the link I see your suggestion is quite good. If someone
wanted a special one time only style I would add the following:
..special { font-weight: bold; color: #FF0000}
I would add this comment to the style:
/* color red emphasis bold */
I would then add this to the body:
<span class="special">Bold Red Text</span>
If needed I would adapt the comment to describe any additional formattting
too, of course this is all OT in this NG. ;-)
Signed,
me