Maybe you are one of the crazy ones who desperately want every bit of performance out of your CSS, otherwise, using id
everywhere can be bad. `id attributes styles are hard to overwrite, and are meant to be unique per page.
Follow these guidelines for id
usages:
- Use it for something truly unique on the page like a logo and containers.
- Do not use it on or inside components that are meant to be re-used.
- Use it on headings and sections of the website you want to link to.
- Use an id generator to ensure uniqueness if necessary.