The two main parts of an HTML document are the head and the body. Each section contains specific information. The head section contains information that is useful to the Web browser and search engines but is not visible to the reader. The body section contains the information that you want the visitor to see. The document is specifically formatted so that Web browsers are able to parse the information and present it to the visitor correctly.
Structure of an HTML document
An HTML document must be formatted correctly to be read by a Web browser. The following is a general outline of a typical HTML document:
Both thetags and the tags are contained within the main tag. Both sections must be terminated with the "</>" characters for the document to be read.
The head section of the document contains the site's title, keywords for search engines, scripts and the location of a cascading style sheet that should be used in formatting the page. Typical HTML tags used in the head section include the