[thelist] Combine CLASS attribute + STYLE attibute

Elly elly at mac.com
Fri Mar 30 14:44:00 CST 2001


This seems OK, and it validates, but I've never been able to find 
this in the standard or any documentation.
Is it proper to combine a CLASS attribute and a STYLE attibute within 
a SPAN element (or within any element tag that that can have these 
attributes)?

For example (if "small" is a class defined in the style sheet):

<SPAN Class="small" STYLE="color: #FF0000">small red text</SPAN>

or,

<P Class="small" STYLE="color: #FF0000">small red text</P>
-- 
Elly

http://www.echozone.com/




More information about the thelist mailing list