From the course: HTML: Metadata in the Head

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Establishing language in your document

Establishing language in your document - HTML Tutorial

From the course: HTML: Metadata in the Head

Start my 1-month free trial

Establishing language in your document

- [Narrator] At the very start, of your HTML document sits the HTML tag itself. If you're watching this video from the United States, chances are that the head of your document, looks similar to this. This indicates that we're using general English for the language in this document en for English. If you happen to be watching this video from another country and installed VS code there, it's possible that this language is set to something different. However, as you're likely aware, there are several variants of English for example, American English will ask for a favor, F-A-V-O-R, while British English will ask for a favour, F-A-V-O-U-R. You can localize your language by saying something like Lang equals en hyphen US or en hyphen GB and that would localize this particular language, to your region of the world, I'm going to change that back to US. The language attribute is a global attribute, which may be used with any tag…

Contents