lang Attribute

Description

The lang attribute sets the language of an element's contents.

The value for the lang attribute must be a valid ISO language code.

The lang attribute is intended to allow the browser to adjust its approach to displaying an element.

Example


<!DOCTYPE HTML>
<html>
<body>
    <p lang="en">Hello</p>
    <p lang="fr">Bonjour</p>
</body><!--from ww  w .j a  va 2s  .c  o m-->
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed