DEV Community 👩‍💻👨‍💻

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

Collapse
 
galoisgirl profile image
Anna

It depends. When there just happens to be one top menu, class is safer. When it has to be id for some reason, id it is.