Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2universalStack: css
htmlsemanticsaccessibility
Use semantic landmark elements according to the spec
Avoid duplicating singleton landmark elements (e.g. multiple <header>s in conflicting roles); pick the semantically correct element.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codehtml
| 1 | <header className="menu">{categories}</header> // a second, conflicting header on the page |
Explanation (EN)
Objašnjenje (HR)
Good example
New codehtml
| 1 | <nav className="menu">{categories}</nav> |
Explanation (EN)
Objašnjenje (HR)