Files
freeCodeCamp/mock-guide/english/html/attributes/lang/index.md
Stuart Taylor 7da04a348b fix: Update packages and fix local dev (#26907)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
2018-10-23 18:48:46 +05:30

25 lines
586 B
Markdown

---
title: Lang
---
## Lang
In HTML, Lang tag is used to declare the language of the whole or a part of a web page.
### Examples
```html
<html lang="en">
</html>
```
The lang attribute can also be used to specify the language of a specific element:
```html
<p lang="hi">
फ्री कोड कैंप
</p>
```
In the above example, "hi" denotes the Hindi language. Similarly, you can use "en" for English, "es" for Spanish, "fr" for French and so on.
Refer to [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for the appropriate two-digit Language code.