The HTML <lang> Attribute

By: Dusty Arlia
Published on February 18, 2013
Last Updated on Thursday, July 16, 2015 at 7:31 PM
Total Updates: 2

The HTML <lang> attribute specifies the language of the element's contents. If you are using HTML5, then you can add this attribute to any element. However, this attribute is not usually necessary. You can use it when you have snippets of content in a different language. This can help when a browser tries to translate a webpage in a different language.

Comments:

Ad: