Home Can an html element have multiple ids?
Reply: 0

Can an html element have multiple ids?

user362 Published in April 25, 2018, 12:23 pm

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.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.482784 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO