Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

Can an html element have multiple ids?

Asked by Shivam Jaiteley Jul 14, 2021 1.4K views 1 answer
Share

About this question

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

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

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

Your answer

1 Answer

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.