Previous Message
Next Message

[css-d] Re: Hello - new list member with beginner css questions

Sent by Timothy J. Luoma on 31 January 2002 21:09

On Thu, 31 Jan 2002, aardvark wrote:

> > From: Rijk van Geijtenbeek [EMAIL-REMOVED]>
> [...]
> > <p>Some text with a <span style="color:red;">special</span> word in
> > it.</p>
> >
> > Of course, this doesn't offer any advantage above the FONT tag.
> > This is better:
> >
> > <p>Some text with a <span class="special">special</span> word in
> > it.</p>
> >
> > ... and in your stylesheet:
> > .special {color: red;}
> neither of these really offers much advantage over the <font> tag...
> sure, you're now maintaining the color in one place, but believe it or
> not, you've just embedded style into your page anyway...
> since the sole purpose of that <span> is to apply a style, it's as
> bad as having a <font> (IMO)...  what happens if you don't want it
> styled anymore?  do you cut all the <span> as if they were
> <font>s, or just unstyle the class in your CSS?

yes, you unstyle them.  That's the advantage over <font> .... or you style
them for the screen and leave them unstyled for the printer.  There's
another advantage.

> the point is, and not a lot of people completely agree with me on
> this, your markup should do two things:
> - impart structure (like your <div>s in a CSS layout, or your <h#>
> tags do to imply hierarchy)
> - impart syntactical/semantic meaning (like <em> and <strong>
> do, or better yet, <abbr>, <acronym>, <cite>, etc.)

So you think we can eliminate all style from content?  Can you show me a
site, any site, that does that in practice?

I don't.

I'm not even sure that's a goal I am working towards.  If I am going to
re-use a style, it goes in the style sheet and get a class assignment.  If
I need/want/desire to style a piece of text, I'm probably going to use
<span style="whatever">

Maybe when we get to XML we can separate everything, but we're not there



Timothy J. Luoma ~ ~ [EMAIL-REMOVED]
Amateur Webdesigner Extraordinaire
Favorite pasttime: Finding and Reporting obscure typos in webpages
"Good web designers are frequently validated"
Replies to the list preferred unless I've wandered too far OT :-)
Previous Message
Next Message

Message thread: