By | April 27, 2013
An HTML document contains two distinct parts, the head and the body. The head contains information about the document that is not displayed on the screen. The body then contains everything else that is displayed as part of the web page.
The basic structure then of any HTML page is:

<!-- header info used to contain extra information about
this document, not displayed on the page -->


<!-- all the HTML for display -->
: :
: :
: :

  • The very first line:

is not technically required, but is a code that tells the browser what version of HTML the current page is written for.

  • Enclose all HTML content within <html>...</html> tags. Inside is first your <head>...</head> and then the <body>...</body> sections.

  • Also note the comment tags enclosed by <!-- blah blah blah -->. The text between the tags is NOT displayed in the web page but is for information that might be of use to you or anyone else who might look at the HTML code behind the web page. When your web pages get complicated (like you will see when we get into tables, frames, and other fun stuff about 20 lessons from now!), the comments will be very helpful when you need to update a page you may have created long ago.

Leave a Reply

Your email address will not be published. Required fields are marked *