Home › Forums › CSS › IDS and Class › Re: IDS and Class
June 16, 2013 at 8:09 am
#138918
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.