Can an html element have multiple ids?

Posted by webmat on Stack Overflow See other posts from Stack Overflow or by webmat
Published on 2008-10-10T16:04:16Z Indexed on 2010/04/20 11:43 UTC
Read the original article Hit count: 171

I understand that an id must be unique within an HTML/XHTML page.

My question is, for a given element, can I assign multiple ids to it?

<div id="nested_element_123 task_123"></div>

I realize I have an easy solution with simply using a class. I'm just curious about using ids in this manner.

© Stack Overflow or respective owner

Related posts about html

Related posts about XHTML