html-validate
Markup validity, accessibility and document structure, checked by html-validate
Правил: 83
html-validate/area-althtml-validate/aria-hidden-bodyaria-hiddenmust not be used on the<body>element as it makes the page inaccessible to assistive technology such as screenreadershtml-validate/aria-label-misusehtml-validate/attr-caseAttribute name must be in lowercase.html-validate/attr-delimiterAttribute value must not be separated by whitespace.html-validate/attr-quoteshtml-validate/attr-spacingNo space between attributes. At least one whitespace character (commonly space) must be used to separate attributes.html-validate/attribute-allowed-valueshtml-validate/attribute-boolean-styleRequire a specific style when writing boolean attributes.html-validate/attribute-empty-styleRequire a specific style for attributes with empty values.html-validate/attribute-misusehtml-validate/autocomplete-passwordhtml-validate/close-attrHTML disallows end tags to have attributes.html-validate/close-orderHTML requires elements to be closed in the same order as they were opened.html-validate/deprecatedhtml-validate/doctype-htmlHTML5 documents should use the “html” doctype (shortform, not legacy string):html-validate/doctype-stylehtml-validate/element-caseElement tagname must be in lowercase.html-validate/element-namehtml-validate/element-permitted-contenthtml-validate/element-permitted-occurrencesSome elements may only be used a fixed amount of times in given context.html-validate/element-permitted-orderSome elements has a specific order the children must use.html-validate/element-permitted-parenthtml-validate/element-required-ancestorhtml-validate/element-required-attributeshtml-validate/element-required-contenthtml-validate/empty-headingAssistive technology such as screen readers require textual content in headings. Whitespace only is considered empty.html-validate/empty-titleThe<title>element cannot be empty, it must have textual content.html-validate/form-dup-namehtml-validate/heading-levelHeadings must start at <h1> and can only increase one level at a time.html-validate/hidden-focusablearia-hiddencannot be used on focusable elements.html-validate/input-attributeshtml-validate/input-missing-labelEach form element must have an a label or accessible name.html-validate/long-titleSearch engines truncates titles with long text, possibly down-ranking the page in the process.html-validate/map-dup-name<map>must have a unique name, it cannot be the same name as another<map>elementhtml-validate/map-id-nameWhen theidattribute is present on a<map>element it must be equal to thenameattribute.html-validate/meta-refreshMeta refresh directive must use the0;url=...format. Non-zero values for time interval is disallowed as people with assistive technology might be unable to read and understand the page content before automatically reloading. For the same reason skipping the url is disallowed as it would put the browser in an infinite loop reloading the same page over and over again.html-validate/missing-doctypeRequires that the document contains a doctype.html-validate/multiple-labeled-controlsA<label>element can only be associated with one control at a time.html-validate/no-abstract-rolehtml-validate/no-autoplayhtml-validate/no-conditional-commentMicrosoft Internet Explorer previously supported using special HTML comments (conditional comments) for targeting specific versions of IE but since IE 10 it is deprecated and not supported in standards mode.html-validate/no-deprecated-attrHTML5 deprecated many old attributes.html-validate/no-dup-attrHTML disallows two or more attributes with the same (case-insensitive) name.html-validate/no-dup-classPrevents unnecessary duplication of class names.html-validate/no-dup-idThe ID of an element must be unique.html-validate/no-implicit-button-type<button>is missing recommendedtypeattributehtml-validate/no-implicit-closeSome elements in HTML has optional end tags. When an optional tag is omitted a browser must handle it as if the end tag was present.html-validate/no-implicit-input-type<input>is missing recommendedtypeattributehtml-validate/no-inline-styleInline style is not allowed.html-validate/no-missing-referenceshtml-validate/no-multiple-mainOnly a single visible<main>element can be present at in a document at a time.html-validate/no-raw-charactersSome characters such as<and&hold special meaning in HTML and must be escaped using a character reference (HTML entity).html-validate/no-redundant-aria-labelaria-labelis redundant when an associated<label>element containing the same text exists.html-validate/no-redundant-forWhen the<label>element wraps the labelable control theforattribute is redundant and better left out.html-validate/no-redundant-rolehtml-validate/no-self-closingSelf-closing elements are disallowed. Use regular end tag <undefined></undefined> instead of self-closing <undefined/>.html-validate/no-trailing-whitespaceLines with trailing whitespace cause unnessecary diff when using version control and usually serve no special purpose in HTML.html-validate/no-unused-disablehtml-validate/no-utf8-bomThis file is saved with the UTF-8 byte order mark (BOM) present. It is neither required or recommended to use.html-validate/prefer-buttonhtml-validate/prefer-native-elementhtml-validate/prefer-tbodyWhile<tbody>is optional is relays semantic information about its contents. Where applicable it should also be combined with<thead>and<tfoot>.html-validate/presentation-role-stylehtml-validate/require-sriSubresource Integrity (SRI)integrityattribute is required to prevent tampering or manipulation from Content Delivery Networks (CDN), rouge proxies, malicious entities, etc.html-validate/script-elementThe end tag for<script>is a hard requirement and must never be omitted even when using thesrcattribute.html-validate/script-typeWhile valid the HTML5 standard encourages authors to omit the type element for JavaScript resources.html-validate/tel-non-breakinghtml-validate/text-contenthtml-validate/unique-landmarkWhen the same type of landmark is present more than once in the same document each must be uniquely identifiable with a non-empty and unique name.html-validate/unrecognized-char-refhtml-validate/valid-autocompletehtml-validate/valid-forThe<label>forattribute must reference a labelable form control.html-validate/valid-idhtml-validate/void-contentHTML void elements cannot have any content and must not have content or end tag.html-validate/void-stylehtml-validate/wcag/h30WCAG 2.1 requires each<a href>anchor link to have a text describing the purpose of the link using either plain text or an<img>with thealtattribute set.html-validate/wcag/h32WCAG 2.1 requires each<form>element to have at least one submit button.html-validate/wcag/h36WCAG 2.1 requires all images used as submit buttons to have a non-empty textual description using thealtattribute.html-validate/wcag/h37Both HTML5 and WCAG 2.0 requires images to have a alternative text for each image.html-validate/wcag/h63H63: Using the scope attribute to associate header cells and data cells in data tableshtml-validate/wcag/h67A decorative image cannot have a title attribute. Either removetitleor add a descriptivealttext.html-validate/wcag/h71H71: Providing a description for groups of form controls using fieldset and legend elements