RE: inline CSS (was: is anyone interested in XHTML?)

Arjun Ray wrote:

> > <P CLASS="intro">This demonstrates <SPAN STYLE="text-decoration:
> > blink;">blink</SPAN>.</P>
> >
> > Surely anyone could understand that I preferred not to include a CLASS
> > in this case?
>
> But wouldn't this be the same?
>
>   <style>
>    #blink  { text-decoration: blink ; }
>   </style>
>   <P CLASS="intro">This demonstrates <SPAN id="blink">blink</SPAN>.</P>

Yes.  CLASS would do the same thing, too, though.

> Okay then, what's an ID-selector for?  Would there be any reason to
> use one?

Sure, you just gave one.  The advantage of CLASS over ID (from a CSS p-o-v in
this case) is when you want to have multiple items styled the same way.


/Jelks

Received on Wednesday, 23 February 2000 00:11:17 UTC