HTML rules
tx0 checks .html and .htm files with 131 rules, 31 of them in the default tier. Files that say a tool generated them are skipped. Each rule's page explains what it finds and what it leaves alone.
Default: 31 rules
Bugs and security problems with measured precision. They run without a tx0.toml.
-
tx0/html:abstract-roledefaultAn element uses an abstract role
-
tx0/html:area-without-altdefaultA linked region of an image map has no text alternative
-
tx0/html:duplicate-attributedefaultA tag has the same attribute twice
-
tx0/html:duplicate-iddefaultTwo elements in a page have the same id
-
tx0/html:empty-page-titledefaultThe title of a page is empty
-
tx0/html:false-boolean-attributedefaultA boolean attribute set to false is still on
-
tx0/html:hidden-bodydefaultThe body of a page is hidden from assistive technology
-
tx0/html:image-button-without-altdefaultAn image button has no text alternative
-
tx0/html:img-without-altdefaultAn image has no text alternative
-
tx0/html:inline-script-syntax-errordefaultAn inline script has a syntax error
-
tx0/html:inline-style-syntax-errordefaultAn inline style sheet or style attribute has a syntax error
-
tx0/html:integrity-without-crossorigindefaultA cross-origin file with an integrity hash is fetched without CORS, so the check fails
-
tx0/html:invalid-aria-valuedefaultAn aria attribute has a value it does not accept
-
tx0/html:invalid-character-referencedefaultA numeric character reference names a code point that cannot appear in a document
-
tx0/html:invalid-directiondefaultA text direction attribute has a value that does not exist
-
tx0/html:invalid-header-scopedefaultA table header has a scope value that does not exist
-
tx0/html:invalid-iddefaultAn id is empty or holds whitespace
-
tx0/html:invalid-language-tagdefaultA language attribute does not hold a language tag
-
tx0/html:json-script-syntax-errordefaultA JSON script block is not valid JSON
-
tx0/html:label-target-not-labelabledefaultA label points at an element that cannot be labeled
-
tx0/html:malformed-attribute-namedefaultAn attribute name holds a quote or a less-than sign
-
tx0/html:mixed-srcset-descriptorsdefaultAn image source set mixes width and density descriptors
-
tx0/html:nested-formdefaultA form is nested inside another form
-
tx0/html:nested-interactivedefaultAn interactive element is nested inside a link or button
-
tx0/html:repeated-head-elementdefaultA page has a second title, base or encoding declaration
-
tx0/html:self-closing-non-voiddefaultA non-void HTML element is written as self-closing, which leaves it open
-
tx0/html:several-selected-optionsdefaultA single-choice select marks several options as selected
-
tx0/html:unknown-aria-attributedefaultAn aria attribute does not exist
-
tx0/html:unknown-button-typedefaultA button has a type that does not exist and submits the form
-
tx0/html:unknown-roledefaultAn element has a role that does not exist
-
tx0/html:usemap-without-hashdefaultAn image map reference does not start with a hash sign
Recommended: 68 rules
Likely bugs, resource and performance problems.
-
tx0/html:active-mixed-contentrecommendedA script, stylesheet or frame is loaded over unencrypted HTTP
-
tx0/html:aria-reference-missingrecommendedAn aria attribute refers to an id that does not exist
-
tx0/html:autoplay-with-soundrecommendedMedia starts playing with sound on its own
-
tx0/html:base-after-urlsrecommendedA base element comes after elements that use URLs
-
tx0/html:blank-target-openerrecommendedA link opens another site in a new tab and gives it access to the opening page
-
tx0/html:button-without-namerecommendedA button has no accessible name
-
tx0/html:cdn-without-integrityrecommendedA script or stylesheet from a public CDN has no integrity hash
-
tx0/html:click-without-keyboardrecommendedAn element reacts to clicks but cannot be used from the keyboard
-
tx0/html:control-without-labelrecommendedA form control has no label
-
tx0/html:credentials-in-urlrecommendedA URL in the page holds a user name and password
-
tx0/html:defer-without-srcrecommendedAn inline script is marked defer or async, which has no effect
-
tx0/html:details-without-summaryrecommendedA disclosure widget has no summary
-
tx0/html:dimension-with-unitrecommendedA width or height attribute holds a unit
-
tx0/html:document-writerecommendedAn inline script writes into the document while it is parsed
-
tx0/html:duplicate-accesskeyrecommendedTwo elements share an access key
-
tx0/html:empty-aria-labelrecommendedAn aria label attribute is empty
-
tx0/html:empty-headingrecommendedA heading has no content
-
tx0/html:empty-urlrecommendedA resource URL is empty and loads the page itself
-
tx0/html:end-tag-with-attributesrecommendedAn end tag has attributes
-
tx0/html:form-posts-over-httprecommendedA form submits its data over unencrypted HTTP
-
tx0/html:frame-without-titlerecommendedAn inline frame has no title
-
tx0/html:head-element-in-bodyrecommendedAn element that belongs in the head is in the body
-
tx0/html:headers-reference-missingrecommendedA table cell refers to a header id that does not exist
-
tx0/html:heading-level-skippedrecommendedA heading skips a level below the heading before it
-
tx0/html:hidden-focusablerecommendedAn element hidden from assistive technology can take focus
-
tx0/html:html-without-langrecommendedA page does not declare its language
-
tx0/html:input-attribute-without-effectrecommendedAn input attribute does not apply to the input's type
-
tx0/html:invalid-autocompleterecommendedA form field has an autocomplete value that is not an autofill token
-
tx0/html:javascript-urlrecommendedA URL attribute runs script through a javascript: URL
-
tx0/html:label-target-missingrecommendedA label points at an id that does not exist
-
tx0/html:late-charsetrecommendedThe character encoding is declared too late in the page
-
tx0/html:legacy-charsetrecommendedA page declares an encoding other than UTF-8
-
tx0/html:link-without-namerecommendedA link has no accessible name
-
tx0/html:list-child-not-itemrecommendedA list holds an element that is not a list item
-
tx0/html:list-item-outside-listrecommendedA list item is not inside a list
-
tx0/html:main-inside-sectionrecommendedThe main element is inside an article, aside, footer, header or nav
-
tx0/html:meta-without-contentrecommendedA meta element has a name but no content
-
tx0/html:missing-attribute-spacerecommendedTwo attributes are written without a space between them
-
tx0/html:missing-doctyperecommendedA page has no doctype and renders in quirks mode
-
tx0/html:misspelled-attributerecommendedAn attribute name is a misspelling of an HTML attribute
-
tx0/html:nested-commentrecommendedA comment contains the start of another comment
-
tx0/html:object-without-alternativerecommendedAn embedded object has no fallback content or name
-
tx0/html:obsolete-attributerecommendedAn element uses an obsolete attribute
-
tx0/html:obsolete-elementrecommendedAn element is obsolete in HTML
-
tx0/html:page-without-titlerecommendedA page has no title element
-
tx0/html:password-in-queryrecommendedA form sends a password in the URL
-
tx0/html:plugin-contentrecommendedAn embedded object needs a browser plugin that no longer exists
-
tx0/html:positive-tabindexrecommendedAn element sets a tabindex above zero
-
tx0/html:presentation-on-focusablerecommendedAn element that takes focus is marked as presentational
-
tx0/html:presentational-attributerecommendedAn element uses an obsolete presentational attribute
-
tx0/html:quote-in-unquoted-valuerecommendedAn unquoted attribute value holds a quote or equals sign
-
tx0/html:role-missing-staterecommendedAn element with a widget role lacks a state the role requires
-
tx0/html:sandbox-escaperecommendedAn iframe sandbox allows scripts and the same origin together
-
tx0/html:script-src-with-contentrecommendedA script with a src attribute also holds inline code, which is ignored
-
tx0/html:secret-in-hidden-inputrecommendedA hidden form field holds a secret in the markup
-
tx0/html:several-main-landmarksrecommendedA page has more than one visible main element
-
tx0/html:srcset-without-sizesrecommendedAn image source set with width descriptors has no sizes
-
tx0/html:stray-end-tagrecommendedAn end tag closes no open element
-
tx0/html:string-evaluated-as-coderecommendedAn inline script runs a string as code
-
tx0/html:svg-image-without-namerecommendedAn SVG image has no accessible name
-
tx0/html:term-outside-description-listrecommendedA description list term or description is not inside a description list
-
tx0/html:timed-refreshrecommendedA page refreshes or redirects itself after a delay
-
tx0/html:unclosed-elementrecommendedAn element is never closed
-
tx0/html:uninformative-altrecommendedThe text alternative of an image is a file name or a placeholder word
-
tx0/html:unknown-elementrecommendedAn element name is not part of HTML and is not a custom element
-
tx0/html:unknown-input-typerecommendedAn input has a type that does not exist
-
tx0/html:unsafe-referrer-policyrecommendedThe referrer policy sends full URLs to other sites
-
tx0/html:viewport-blocks-zoomrecommendedThe viewport settings keep users from zooming
Strict: 32 rules
Code that can be written more plainly.
-
tx0/html:alt-says-imagestrictA text alternative announces that it is an image
-
tx0/html:anchor-namestrictA link uses the obsolete name attribute as a fragment target
-
tx0/html:blocking-head-scriptstrictA script in the head blocks rendering
-
tx0/html:compatibility-mode-metastrictA page selects a rendering mode of Internet Explorer
-
tx0/html:conditional-commentstrictA conditional comment targets Internet Explorer
-
tx0/html:duplicate-classstrictA class is listed twice in one class attribute
-
tx0/html:fieldset-without-legendstrictA group of form controls has no legend
-
tx0/html:file-lengthstrictA file has more lines of markup than the configured maximum
-
tx0/html:hover-without-focusstrictA mouse hover handler has no keyboard focus counterpart
-
tx0/html:image-without-dimensionsstrictAn image has no width and height
-
tx0/html:inline-event-handlerstrictAn event handler is written inline in an attribute
-
tx0/html:inline-style-attributestrictAn element is styled with a style attribute
-
tx0/html:label-on-genericstrictA generic element is named with an aria label
-
tx0/html:label-several-controlsstrictA label wraps more than one form control
-
tx0/html:legacy-content-type-metastrictThe encoding is declared with the long http-equiv form
-
tx0/html:legacy-doctypestrictA page declares a doctype of an old HTML version
-
tx0/html:long-titlestrictThe title of a page is longer than the configured maximum
-
tx0/html:nesting-depthstrictElements are nested deeper than the configured maximum
-
tx0/html:page-without-descriptionstrictA page has no meta description
-
tx0/html:page-without-mainstrictA page has no main landmark
-
tx0/html:page-without-viewportstrictA page has no viewport meta element
-
tx0/html:passive-mixed-contentstrictAn image or media file is loaded over unencrypted HTTP
-
tx0/html:placeholder-as-labelstrictA form field is named only by its placeholder
-
tx0/html:redundant-rolestrictAn element repeats its own role
-
tx0/html:redundant-script-typestrictA script declares the default JavaScript type
-
tx0/html:redundant-style-typestrictA style element or stylesheet link declares the default CSS type
-
tx0/html:several-top-headingsstrictA page has more than one h1 heading
-
tx0/html:table-without-headersstrictA data table has no header cells
-
tx0/html:todo-commentstrictA comment marks unfinished work
-
tx0/html:uppercase-tag-namestrictA tag name is written in uppercase
-
tx0/html:vague-link-textstrictThe text of a link does not say where it leads
-
tx0/html:video-without-captionsstrictA video has no captions track