HTML lang attribute

HTML lang attribute

In this tutorial, we will learn about lang attribute in HTML with the help of examples.

lang attribute

The lang attribute is used to specify the language of the element's content by using language code.
Example of some language codes - en for english, fr for french, es for spanish and so on.


<a lang = "language_code">......</a>

Attribute values

Value Description
language_code Used to specify the language code for the element's content

Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of lang Attribute in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML spellcheck Attribute.

- Related Topics