Home / HTML Tips Generated By ChatGPT / Specifying Document Language with lang Attribute in HTML The lang attribute on the tag specifies the primary language of the document’s content. Source Code