HTML Basics

HTML Structure

Posted on 30th April 2013

The structure of a HTML document is as shown below

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

</head>

<body>

</body>
</html>

DOCTYPE: Declares which version of HTML is used in the document.<!DOCTYPE> declarations for HTML 4.01 are:

Strict

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

Transitional

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Frameset

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html> : Defines the start of the HTML document.

<head> : Defines the start of head section. Head section contains general information about a page like title, description, and keywords.

</head> : Defines the end of head section.

<body> : Defines start of the actual page contents.

</body> : Defines the end of page contents

</html> : Defines the end of the HTML document

Post a comment

Comments

Nothing yet..be the first to share wisdom.