Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IDS and Class Re: IDS and Class

#138918
CrocoDillon
Participant

> Yes, it’s perfectly ok.

Actually, it’s not as @pixelgrid already mentioned.

> The value must not contain any space characters. – [spec](http://www.w3.org/TR/html5/dom.html#the-id-attribute)

You can compare this definition to that of the [class attribute](http://www.w3.org/TR/html5/dom.html#classes), where it’s explicitly states it can contain a set of space separated classes.