Lang Attribute

Use when applies to all HTML documents. Check the `<html>` opening tag for a `lang` attribute with a non-empty, valid BCP 47 language code. Also check for `lang` attribute changes on individual elements when the document contains content in multiple languages (inline quotes, foreign terms, multilingual sections). The `lang` attribute is inherited — child elements inherit the language from their nearest ancestor with `lang`.

thedaviddias 8b00a96 2 files · 7.8 KB Updated

File contents

thedaviddias/front-end-checklist/tree/main/skills/lang-attribute commit 8b00a96daf

Frequently asked questions

npx skillmds@latest add thedaviddias/lang-attribute