You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[`html-lang-require`](/docs/user-guide/rules/html-lang-require): The HTML lang attribute is required.
12
11
-[`head-script-disabled`](/docs/user-guide/rules/head-script-disabled): The `<script>` tag cannot be used in `<head>` tag.
13
-
-[`style-disabled`](/docs/user-guide/rules/style-disabled): `<style>` tags cannot be used.
12
+
-[`html-lang-require`](/docs/user-guide/rules/html-lang-require): The HTML lang attribute is required.
13
+
-[`meta-description-require`](/docs/user-guide/rules/meta-description-require): `<meta name="description">` with non-blank content must be present in `<head>` tag.
14
+
-[`meta-viewport-require`](/docs/user-guide/rules/meta-viewport-require): `<meta name="viewport">` with non-blank content must be present in `<head>` tag.
14
15
-[`script-disabled`](/docs/user-guide/rules/script-disabled): `<script>` tags cannot be used.
16
+
-[`style-disabled`](/docs/user-guide/rules/style-disabled): `<style>` tags cannot be used.
15
17
-[`title-require`](/docs/user-guide/rules/title-require): `<title>` must be present in `<head>` tag.
16
-
-[`meta-description-require`](/docs/user-guide/rules/meta-description-require): `<meta name="description">` with non-blank content must be present in `<head>` tag.
17
18
18
19
## Attributes
19
20
21
+
-[`alt-require`](/docs/user-guide/rules/alt-require): The alt attribute of an img element must be present and alt attribute of area[href] and input[type=image] must have a value.
20
22
-[`attr-lowercase`](/docs/user-guide/rules/attr-lowercase): All attribute names must be in lowercase.
21
23
-[`attr-no-duplication`](/docs/user-guide/rules/attr-no-duplication): Elements cannot have duplicate attributes.
22
24
-[`attr-no-unnecessary-whitespace`](/docs/user-guide/rules/attr-no-unnecessary-whitespace): No spaces between attribute names and values.
25
+
-[`attr-sorted`](/docs/user-guide/rules/attr-sorted): Attributes should be sorted in order.
-[`attr-value-double-quotes`](/docs/user-guide/rules/attr-value-double-quotes): Attribute values must be in double quotes.
25
-
-[`attr-value-single-quotes`](/docs/user-guide/rules/attr-value-single-quotes): Attribute values must be in single quotes.
26
28
-[`attr-value-not-empty`](/docs/user-guide/rules/attr-value-not-empty): All attributes must have values.
27
-
-[`attr-sorted`](/docs/user-guide/rules/attr-sorted): Attributes should be sorted in order.
29
+
-[`attr-value-single-quotes`](/docs/user-guide/rules/attr-value-single-quotes): Attribute values must be in single quotes.
28
30
-[`attr-whitespace`](/docs/user-guide/rules/attr-whitespace): No leading or trailing spaces in attribute values.
29
-
-[`alt-require`](/docs/user-guide/rules/alt-require): The alt attribute of an img element must be present and alt attribute of area[href] and input[type=image] must have a value.
30
31
-[`button-type-require`](/docs/user-guide/rules/button-type-require): The type attribute of a button element must be present with a valid value: "button", "submit", or "reset".
31
32
-[`input-requires-label`](/docs/user-guide/rules/input-requires-label): All [ input ] tags must have a corresponding [ label ] tag.
32
33
33
34
## Tags
34
35
35
-
-[`tags-check`](/docs/user-guide/rules/tags-check): Allowing specify rules for any tag and validate that
36
+
-[`empty-tag-not-self-closed`](/docs/user-guide/rules/empty-tag-not-self-closed): The empty tag should not be closed by self.
37
+
-[`h1-require`](/docs/user-guide/rules/h1-require): A document must have at least one `<h1>` element.
38
+
-[`href-abs-or-rel`](/docs/user-guide/rules/href-abs-or-rel): An href attribute must be either absolute or relative.
39
+
-[`main-require`](/docs/user-guide/rules/main-require): A document must have at least one `<main>` element in the `<body>` tag.
40
+
-[`src-not-empty`](/docs/user-guide/rules/src-not-empty): The src attribute of an img(script,link) must have a value.
36
41
-[`tag-pair`](/docs/user-guide/rules/tag-pair): Tag must be paired.
37
42
-[`tag-self-close`](/docs/user-guide/rules/tag-self-close): Empty tags must be self closed.
38
43
-[`tagname-lowercase`](/docs/user-guide/rules/tagname-lowercase): All HTML element names must be in lowercase.
39
44
-[`tagname-specialchars`](/docs/user-guide/rules/tagname-specialchars): Tag names can only contain letters, numbers, "-", ":" or "\_".
40
-
-[`empty-tag-not-self-closed`](/docs/user-guide/rules/empty-tag-not-self-closed): The empty tag should not be closed by self.
41
-
-[`src-not-empty`](/docs/user-guide/rules/src-not-empty): The src attribute of an img(script,link) must have a value.
42
-
-[`href-abs-or-rel`](/docs/user-guide/rules/href-abs-or-rel): An href attribute must be either absolute or relative.
43
-
-[`h1-require`](/docs/user-guide/rules/h1-require): A document must have at least one `<h1>` element.
44
-
-[`main-require`](/docs/user-guide/rules/main-require): A document must have at least one `<main>` element in the `<body>` tag.
45
+
-[`tags-check`](/docs/user-guide/rules/tags-check): Allowing specify rules for any tag and validate that
0 commit comments