HTMLforall

  HTML | PHP | Forum

Home

HTML Tutorial
Introduction
Definition
HTML Basics
CSS Tutorial
CSS Reference

HTML Reference
Alphabetical
By function

Web Tools
Web Browsers

Web Statistics

 

 

HTML Tutorial

HTML Basics: the (first) minimal document

In an HTML document, the first element is HTML. The HTML start tag (<html>) marks the beginning of an HTML document, and the HTML end tag (</html>) marks the end. HTML tags are not case sensitive.

The typical HTML document is divided into two major sections: the head and the body.

  • The head contains information about the document, such as its title and "meta" information describing the content.
  • The body contains the document that will be displayed on your browser.
Source Output
<html>
<head>
<title> This is the title my first document> </title>
</head>
<body>
This is the text displayed by the Browser.
</body>
</html>
This is the text displayed by the Browser.

The head section, even if not displayed directly by your browser is very important. The infomation is used by the browser as the tag title or collected by the search engines. A specific section is dedicated to this section.

HTML 4.01 specifies that the minimal HTML document should also include a line that identifies the HTML version using the <!DOCTYPE> declaration. 

 

Copyright 2005-8 Sunilcare.  All Rights Reserved.
Comments or suggestions? Contact us.About us