About HTML class attribute, that assigns CSS class (or classes?) to a tag.
The use of spaces, like in
<tag class="a b">....</tag>
is valid?
This syntax is used by some web-designers and occurs into exported HTML of Adobe InDesign (tested with versions 5 and 6), and another HTML generation softwares…
It (class="a b") is a valid W3C syntax? What versions of CSS and HTML?
(starting from which version became valid?)
EDIT: a natural subquestion “W3C say how to interpret it?” (it is an “override” or another renderization behaviour?) was posted here.
these are two different classes
a&bseparated by space. see w3c DOCSclass = cdata-list [CS]
If you have two class
and assign in class=”a b” or class=”b a”, then later class will overwrite the prior class having same property, so font weight will be normal.
If you change the CSS definition order,
now the later class is bold, so “overwrite the prior class having same property” results font weight bold.