Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Can we use multiple id attributes in a single element just like we can with classes? - Kevin Powell - Community
KP-C
Kevin Powell - Community
โข
10mo ago
โข
18 replies
Faker
Can we use multiple id attributes in a single element just like we can with classes?
Hello
, consider the following
:
<div id="first second"></div>
<div id="first second"></div>
is this valid
?
<div class="first second"></div>
<div class="first second"></div>
We can have something like that though
, but for id if it
's not valid
, is there a reason why we can
't do that please
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time ๐.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Is it better to have reusable classes or a single class for each element?
KP-C
Kevin Powell - Community / help
6mo ago
why can't we use justify-item in flexbox but we can in grid?
KP-C
Kevin Powell - Community / help
8mo ago
Element in DOM with display none Vs Element not in DOM
KP-C
Kevin Powell - Community / help
6mo ago
SQL multiple table same unique id
KP-C
Kevin Powell - Community / help
7mo ago