Thursday, January 6, 2011

The html Element

The html element is topmost in the hierarchy of (X)HTML elements and is known as the root element. Therefore all (X)HTML elements are descendants of the html element. The html element appears after the Document Type Declaration.

The head and the body elements, and, in the case of a Frameset document, the frameset element are the only child elements of html.

Example: <html lang="en">


lang and xml:lang
These attributes specifiy the language of the contents of the document. See this page for more information.
See this page.
This attribute is used to uniquely name the html element. It is allowed on the html element only when the doctype is XHTML.
This is a deprecated attribute. Its value is the Formal Public Identifier of the HTML Document Type Definition (DTD) of the document. This attribute should not be used because the DTD of the document is specified in the doctype.
This is a required attribute in XHTML documents. It specifies the XML namespace of the document.

1 comment:

Search Optimization said...

A nice article. I totally love the way you presented the topic. Hope to see you post soon again.

PYTHON Training in Chennai