-
Notifications
You must be signed in to change notification settings - Fork 203
03. Language Attribute
martin@mustbebuilt.co.uk edited this page Sep 1, 2024
·
2 revisions
Lighthouse will identify that the page is missing a language attribute on the <html> element. Lighthouse tells us:
"If a page doesn't specify a lang attribute, a screen reader assumes that the page is in the default language that the user chose when setting up the screen reader."
This matches the A11Y checklists comments on Global code:
- Use a
langattribute on the html element.
Fix this by ensuring each page has a value for the language attribute of the <html> element.
<!DOCTYPE html>
<html lang="en">