HTML: Multiple Class Attribute Values

By Xah Lee. Date: . Last updated: .

The class attribute can have more than one value, separated by space, like this:

<p class="a b c">Alice In Wonderland</p>

order does not matter.

You should NOT use multiple “class”, such as class="x" class="y".

JS in Depth
XAH  BUY NOW

HTML Basics

HTML Table

Misc

HTML4 Frameset