Why Global Attributes Matter
They are part of the glue between structure, style and behavior.
1
`id` helps with unique references and in-page anchors. `class` helps reuse styles and behavior across several elements.
2
`data-*` lets you store small bits of domain context near the element that needs them without breaking HTML meaning.