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 ruleP1universalStack: HTML
htmlcorrectnessmarkup
Write valid, well-formed markup in embedded HTML strings
When embedding HTML in content/strings, quote attributes and close tags correctly; malformed anchors and unquoted attributes break rendering.
PR: abcn-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codehtml
| 1 | answer: 'Kontakt <a href=mailto:user@example.com>user@example.com<a/>' |
Explanation (EN)
Objašnjenje (HR)
Good example
New codehtml
| 1 | answer: 'Kontakt <a href="mailto:user@example.com">user@example.com</a>' |
Explanation (EN)
Objašnjenje (HR)