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

#138874
posterity576
Participant

Html elements can take on as many id and class attribute values as you’d like, so long as they’re enclosed in quotes and are separated by spaces. Below are two examples of an element with five id’s assigned to it and an element with five classes assigned to it. But again, an element can have as many id or class attribute values as you’d like.

Some text.
Some more text