Name
html
Synopsis
<html>...</html>
This is the root element of an HTML document, meaning all other
elements are contained within it. The opening
<html> tag is placed at the beginning of the
document, just after the document type declaration. The closing tag
goes at the end of the document.
Attributes
Internationalization(lang, xml:lang, dir)
-
version="-//W3C//DTD HTML 4.01//EN" Deprecated in HTML 4.01. In HTML, the value of
versionis a Formal Public Identifier (FPI) that specifies the version of HTML the document uses (the value above specifies 4.01). In HTML 4.01, the version attribute is deprecated because it is redundant with information provided in the DOCTYPE declaration. In XHTML 1.0, the value ofversionhas not been defined.-
xmlns="http://www.w3.org/1999/xhtml" XHTML only. Required. In an XHTML document, this declares the XML namespace for the document.
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