Structure of HTML Documents
The basic structure of HTML documents is as follows:
<HTML>
<HEAD>
<TITLE>Simple HTML Document</TITLE>
</HEAD>
<BODY>
<P>This is a very simple document.
</BODY>
</HTML>
• The tag <HTML>, which begins all HTML documents, indicates to the browser that there are HTML tags to be interpreted. The end tag </HTML> indicates the end of the document.
• The tag <HEAD> defines the header of the document, which contains:
• Between the <META> tags, keywords used by search engines or for other purposes.
• The title (<TITLE> tags), which will be displayed as the title of the browser window.
• The style sheet (<SHEET> tags), a quick way to define a format for displaying various elements in the page.
• Next, the <BODY> tag indicates the start of the body of the document, composed of text, images, and multimedia objects.
• The <P> tag, which indicates a new paragraph, is frequently used in the body of a document.