HTML CSS examples for HTML Global Attribute:lang
The lang attribute specifies the language of the element's content.
For examples, "en" for English, "es" for Spanish, "fr" for French, and so on.
Value | Description |
---|---|
language_code | Specifies the language code for the element's content. |
The following code shows how to set text in a paragraph in french.
<!DOCTYPE html> <html> <body> <p>This is a paragraph.</p> <p lang="fr">Ceci est un paragraphe.</p> </body><!-- w ww . j a v a 2 s . co m--> </html>