markup
Rules: 3
markup/captions
A video has no captions or subtitles
markup/captions/missing · warning · score 6.0 · page
Deaf and hard-of-hearing visitors, and anyone watching without sound, cannot follow speech in a video with no text track. Muted videos without controls are exempt.
Fix
Add <track kind="captions" src="….vtt" srclang="…"> to each video with speech; a muted decorative loop without controls is exempt.
Off by default; a group that runs markup turns it on.
References
For rule authors
Reads
markup.videos
markup/input-type
An input’s type does not match its autocomplete field
markup/input-type/mismatch · warning · score 4.4 · page
Phones show the wrong keyboard and autofill suggests the wrong value when an email, phone or URL field is a plain text input.
Fix
Set type (or inputmode) to what the autocomplete field holds: email, tel or url.
Off by default; a group that runs markup turns it on.
References
For rule authors
Reads
html.inputs
markup/lang-switcher
Language switcher links do not declare their target language
markup/lang-switcher/mismatch · warning · score 4.8 · page
Without lang and hreflang a screen reader pronounces the link in the wrong language, and visitors and search engines cannot tell which language it leads to.
Fix
Give each switcher link lang and hreflang equal to its target’s language, and write its text in that language.
Off by default; a group that runs markup turns it on.
References
For rule authors
Reads
markup.switcherhtml.hreflang