Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: HTML change for Other Users

by Ven'Tatsu (Deacon)
on Nov 22, 2004 at 19:35 UTC ( [id://409700] : note . print w/replies, xml ) Need Help??


in reply to Re^2: HTML change for Other Users
in thread HTML change for Other Users

That was the case in CSS 1.0, in 2.0 and later you can group classes in a single tag.
From http://www.w3.org/TR/CSS21/selector.html:
[att~=val]
Match when the element's "att" attribute value is a space-separated list of "words", one of which is exactly "val". If this selector is used, the words in the value must not contain spaces (since they are separated by spaces).
And later
Working with HTML, authors may use the period (.) notation as an alternative to the ~= notation when representing the class attribute. Thus, for HTML, div.value and div[class~=value] have the same meaning.
This means that some browsers that don't understand newer CSS may have trouble with multiple classes in a single tag, but I don't know of any off the top of my head.