Contents<!DOCTYPE ...> <HTML> <HTMLPLUS ...> <HEAD> <BODY ...> <TITLE> <META ...> <LINK ...> |
<!DOCTYPE ...> |
There are four tags every HTML document should have. These tags define the what type of document it
is, and the major sections. These tags are
<HTML>
<HEAD>
<TITLE>
<BODY ...>
<!DOCTYPE ...>
A really basic document might look like this:
<HTML> <HEAD> <TITLE>A Really Basic Document</TITLE> </HEAD> <BODY> This is a really basic document. </BODY> </HTML>
The use some of these tags (particularly <HTML>
<HEAD>
<HTML>
<HEAD>
<BODY ...>
So why use them at all? The answer falls into the concept of good form. A well written HTML document not only produces a good web page, it is easy to read and understand in its "raw" form. By using the document level tags, you divide the page into logical sections, each with its own purpose. This results in a page of HTML that is easy to understand and edit.