P Automatická kontrola chyb při psaní HTML ve VS Code - nvbach91/4IZ268-2024-2025-ZS GitHub Wiki
Automatická kontrola chyb při psaní HTML ve VS Code
- nainstalujte si ve VS Code Plugin - HTMLHint
- v kořenové složce si vytvořte soubor
.htmlhintrc
a s následujícím obsahem:
{
"attr-lowercase": true,
"attr-unsafe-chars": true,
"attr-value-double-quotes": true,
"attr-value-not-empty": false,
"attr-no-duplication": true,
"attr-whitespace": true,
"attr-no-unnecessary-whitespace": true,
"doctype-first": true,
"doctype-html5": true,
"tag-pair": true,
"tag-self-close": false,
"tagname-lowercase": true,
"spec-char-escape": true,
"src-not-empty": true,
"title-require": true,
"alt-require": true,
"style-disabled": true,
"inline-style-disabled": true,
"inline-script-disabled": true,
"space-tab-mixed-disabled": true,
"id-class-ad-disabled": true,
"id-unique": true,
"href-abs-or-rel": false,
"html-lang-require": true,
"space-tab-mixed-disabled": "space"
}
- poté automatická kontrola chyb začne fungovat

- tento plugin nezachytává úplně všechny chyby
- HTML validátor https://validator.w3.org/ lze také instalovat jako plugin v VS Code


