HTML document structure : html « Tags « HTML / CSS






HTML document structure

    


<?xml version"1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>My first web page</title>
  </head>
  <body>
    <p>It is easy to use HTML</p>
  </body>
</html>

   
    
    
  








Related examples in the same category

1.'html' identifies an HTML document
2.XHTML headers
3.Body tag
4.Working with Structure
5.Structured XHTML 1.1 Document
6.Set margin and padding for both and body
7.Style for HTML
8.Using CSS with HTML
9.An HTML page with CSS rules and HTML attributes
10.Template to illustrate all
11.'xmlns' declares a namespace for creating unique custom tags in the HTML document
12.'version' indicates the version of HTML