// References / The HTML Tag

Posted The: 26/04/2008 - AT: 19:26

Edited The: 27/06/2008 - AT: 20:52

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.

Stumble It!

Author: BlueBoden

Comments: [0]

  1. HTML Tutorial
  2. CSS Tutorial
  3. XHTML Tutorial
  4. RSS Tutorial
  5. PHP Tutorial
  6. htaccess Tutorial
  7. Server Tutorial
  8. SEO Tutorial

Checked At:07:36

2 Guests

0 Users

Online doing the past 15 Minutes!

PageRanking.dk - Flere hits og højere PageRank - GRATIS tilmelding!

This page was created in 0.0817821025848 seconds

Welcome Guest