Files
freeCodeCamp/mock-guide/spanish/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

663 B

title, localeTitle
title localeTitle
Lang Lang

Lang

En HTML, la etiqueta Lang se usa para declarar el idioma de la totalidad o parte de una página web.

Ejemplos


<html lang="en"> 
 </html> 

El atributo lang también se puede usar para especificar el idioma de un elemento específico:


<p lang="hi"> 
  फ्री कोड कैंप 
 </p> 

En el ejemplo anterior, "hola" denota el idioma hindi. Del mismo modo, puede utilizar "en" para inglés, "es" para español, "fr" para francés, etc.

Consulte ISO 639-1 para obtener el código de idioma de dos dígitos apropiado.