Version-//W3C//DTD XHTML 1.0 Transitional//EN
Elementhtml
Purposedocument root element
DescriptionThis is the outermost element of an html document. The html element thus contains all other elements inside the head and body elements. You should have just one html container in a document. For example:
<html>
 <head>
  <title>
   Hello World Demonstration Document
  </title>
 </head>
 <body>
  <h1>
   Hello, World!
  </h1>
  <p>
   This is a minimal "hello world" document. 
  </p>
 </body>
</html>
Start tagRequired <html>
Attributes
NameTypeDefaultComment
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
xmlns CDATA #FIXED 'http://www.w3.org/1999/xhtml'Uniform Resource Identifier as per RFC2396; a Uniform Resource Locator (URL) is a URI
Content( head , body )
End tagRequired </html>
Referenced in
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.