Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

<html>

<html
dir=ltr|rtr
lang=language
title=text
</html>

Denotes the file as an HTML page. The tag typically appears after the <!doctype> tag. The end-tag comes after all HTML tags in the page.

Attributes

dir=ltr|rtr

Specifies the direction of text. This can be left-to-right (ltr) or right-to-left (rtl). For example, English characters are presented left-to-right, Hebrew characters are presented right-to-left.

lang=language

Specifies which language the <html> tag uses. You can enter any valid ISO standard language abbreviation, for example, “en” for English, “de” for German and so on. For example, <span lang="es">hola! como esta?</span>.

This attribute helps search engines understand different languages as different languages rather than just misspelled English. It may also help spelling and grammar checkers and allow speech synthesizers to use language-dependent pronunciation rules.

title=text

For information only. Some browsers display the title when you move the mouse over the tag (like a tool tip).