lang - HTML CSS HTML Global Attribute

HTML CSS examples for HTML Global Attribute:lang

Introduction

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 following code demonstrates how to use this attribute.

Demo Code

ResultView the demo in separate window

<!DOCTYPE HTML>  
<html>  
    <head>      
        <title>Example</title>  
    </head>  
    <body>  
        <p lang="en">Hello - how are you?</p>  
        <p lang="fr">Bonjour</>  
        <p lang="es">Hola</p>  
    </body>  
</html>  <!--   w w  w  .j av a 2 s  .  c o  m-->

Related Tutorials