Name
<html> — NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<html>...</html> (start and end tags optional)
Placed at the beginning and end of the document, this tag tells the browser that the entire document is composed in HTML.
Attributes
-
dir=ltr|rtl Indicates the direction the text should be rendered by the browser. The default is
ltr(left-to-right), but some languages requirertl(right-to-left) rendering. Thelanganddirattributes are part of the internationalization efforts incorporated into the HTML 4.01 specification. They can be added to almost any HTML element, but their use in the<html>tag is common for establishing the language for a whole document. For more information, see Chapter 7.
-
lang=language code Indicates the primary language of the document (see Chapter 7 for more information and language codes).
-
version="-//W3C//DTD HTML 4.01//EN" Deprecated. Specifies the version of HTML the document uses (the value above specifies 4.01). It has been deprecated in favor of the SGML
<!DOCTYPE>declaration placed before the<html>tag.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access