|
| 1 | +--- |
| 2 | +id: list-rules |
| 3 | +title: List of rules |
| 4 | +--- |
| 5 | + |
| 6 | +## Possible errors |
| 7 | + |
| 8 | +### Doctype and Head |
| 9 | + |
| 10 | +- [`doctype-first`](/docs/user-guide/rules/doctype-first): Doctype must be declared first. |
| 11 | +- [`doctype-html5`](/docs/user-guide/rules/doctype-html5): Invalid doctype. |
| 12 | +- [`head-script-disabled`](/docs/user-guide/rules/head-script-disabled): The `<script>` tag cannot be used in a tag. |
| 13 | +- [`style-disabled`](/docs/user-guide/rules/style-disabled): `<style>` tags cannot be used. |
| 14 | +- [title-require](/docs/user-guide/rules/title-require): `<title>` must be present in tag. |
| 15 | + |
| 16 | +### Attributes |
| 17 | + |
| 18 | +- [`attr-lowercase`](/docs/user-guide/rules/attr-lowercase): All attribute names must be in lowercase. |
| 19 | +- [`attr-no-duplication`](/docs/user-guide/rules/attr-no-duplication): Elements cannot have duplicate attributes. |
| 20 | +- [`attr-no-unnecessary-whitespace`](/docs/user-guide/rules/attr-no-unnecessary-whitespace.md): No spaces between attribute names and values. |
| 21 | +- [`attr-unsafe-chars`](/docs/user-guide/rules/attr-unsafe-chars): Attribute values cannot contain unsafe chars. |
| 22 | +- [`attr-value-double-quotes`](/docs/user-guide/rules/attr-value-double-quotes): Attribute values must be in double quotes. |
| 23 | +- [`attr-value-not-empty`](/docs/user-guide/rules/attr-not-empty): All attributes must have values. |
| 24 | +- [`alt-require`](/docs/user-guide/rules/alt-require): The alt attribute of an element must be present and alt attribute of area[href] and input[type=image] must have a value. |
| 25 | + |
| 26 | +### Tags |
| 27 | + |
| 28 | +- [`tags-check`](/docs/user-guide/rules/tags-check.md): Allowing specify rules for any tag and validate that |
| 29 | +- [`tag-pair`](/docs/user-guide/rules/tag-pair): Tag must be paired. |
| 30 | +- [`tag-self-close`](/docs/user-guide/rules/tag-self-close): Empty tags must be self closed. |
| 31 | +- [`tagname-lowercase`](/docs/user-guide/rules/tagname-lowercase): All html element names must be in lowercase. |
| 32 | +- [`empty-tag-not-self-closed`](/docs/user-guide/rules/empty-tag-not-self-closed): The empty tag should not be closed by self. |
| 33 | +- [`src-not-empty`](/docs/user-guide/rules/src-not-empty): The src attribute of an img(script,link) must have a value. |
| 34 | +- [`href-abs-or-rel`](/docs/user-guide/rules/href-abs-or-rel): An href attribute must be either absolute or relative. |
| 35 | + |
| 36 | +### Id |
| 37 | + |
| 38 | +- [`id-class-ad-disabled`](/docs/user-guide/rules/id-class-ad-disabled): The id and class attributes cannot use the ad keyword, it will be blocked by adblock software. |
| 39 | +- [`id-class-value`](/docs/user-guide/rules/id-class-value): The id and class attribute values must meet the specified rules. |
| 40 | +- [`id-unique`](/docs/user-guide/rules/id-unique): The value of id attributes must be unique. |
| 41 | + |
| 42 | +### Inline |
| 43 | + |
| 44 | +- [`inline-script-disabled`](/docs/user-guide/rules/inline-script-disabled): Inline script cannot be use. |
| 45 | +- [`inline-style-disabled`](/docs/user-guide/rules/inline-style-disabled): Inline style cannot be use. |
| 46 | + |
| 47 | +### Formatting |
| 48 | + |
| 49 | +- [`space-tab-mixed-disabled`](/docs/user-guide/rules/space-tab-mixed-disabled): Do not mix tabs and spaces for indentation. |
| 50 | +- [`spec-char-escape`](/docs/user-guide/rules/spec-char-escape): Special characters must be escaped. |
0 commit comments