html/css class attribute

Ok, maybe everybody else in the whole world knows, but this is what I get for not reading the spec...

I had no idea that you could put multiple css class names in the class attribute seperated by a space, like so:

.foo {
  border: 1px solid black;
.bar {
 background: red;
 color: green;
class=”foo bar”


Comments have been disabled for this content.