asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > HTML Element

<HTML Element | HTML Object


Identifies the document as containing HTML elements.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

The HTML element identifies the file as an HTML document. All HTML documents should start with the <html> tag and end with the </html> tag.

An <html> element’s start tag can be omitted if the first thing inside the <html> element is not a comment.

An <html> element’s end tag can be omitted if the <html> element is not immediately followed by a comment.

Attributes

The <html> element supports the following attributes, in addition to global attributes common to all HTML elements.

AttributeValueDescription
xmlnshttp://www.w3.org/1999/xhtmlSpecifies the XML namespace attribute (If you need your content to conform to XHTML)

Example

<html>
<head>
   <title>Sample HTML document</title>
</head>
<body>
   <p>Hello, World.</p>
</body>
</html>

 Show me 

See Also

HEAD   BODY   TITLE



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note