The HTML Tag

Posted The: 26/04/2008 At: 17:26

Last Edited: 30/04/2009 At: 20:55

Contents:

The html tag is used to indicate the start of the (x)'html document series.

Example:

Note. Only one html tag is allowed

The html tag is the root element in a ducument, and parent of head and body. Futher more, the html element may have its own styling applyed.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

  <head>
    <title>My first Website</title>
    <style type="text/css">

    html, body {
     height: 100%;
    }
    </style>
  </head>

  <body>
    <p>My first Website.</p>
  </body>

</html>

In the above example, both html and body has a height of 100% applied, this is to ensure divisions with a min-height of 100% will fill out the canvas vertically. A document's primary language may be set using the LANG attribute on the HTML element.

Comments: [0]

© Brugbart Webdesign