DEV Community

Discussion on: Do you still use IDs for unique elements?

Collapse
keogami profile image
keogami

Examples please

Collapse
darkwiiplayer profile image
DarkWiiPlayer
  • The already mentioned ID-Selector
  • Fragment Identifiers in URLs
  • Input-Label matching
  • Chrome creates a variable for each element with an ID for easier debugging
  • document.getElementById

to name a few