HTML Web Page Basic Framework
There are three sets of tags that are mandatory for almost any web site. Before I get ahead of myself, let me explain what a tag is. HTML uses “tags” to let web browser’s know what to display. Tags occur between left and right angle brackets (< and >). Anything that is not a tag is generally going to show up on your web page. The tags control how the rest shows up.
Tags generally come in sets. There is the <TAG>, and the </TAG>. The </TAG> with the slash is the closing tag. In many cases, you don’t want a tag to last forever, such as when bolding text. So you must remember to close your tags. In many cases, problems with your HTML will boil down to a misspelled or improperly closed tag.
So the three sets of mandatory tags are:
<HTML> </HTML>
<HEAD> </HEAD>
<BODY> </BODY>
Your HTML document will begin with the <HTML> tag and end with the </HTML> tag. It’s a good practice to create both at once and then space the closing tag down several lines to keep it out of the way. The <HTML> tag declares to the browser that this is in fact an HTML document.
The <HEAD> section comes first, as this is the header for your page. There are several special little things that can be put in the header that deal with your page’s formatting as well as keywords, descriptions, etc that can be indexed by search engines. There is also the all-important <TITLE> tag. We will go over the header more in another section.
The <BODY> section is the meat and potatoes of your web site. What happens between <BODY> and </BODY> pretty much makes up your whole web site, as far as what is visible to the viewers. There are many things that can be done within these tags, and we will also take a look at these soon.
So your basic skeletal framework for a web page is thus:
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
Make sure that you save your HTML document with a .html or .htm extension!
On the next HTML tutorial, we will cover the Header section of the HTML-based web page. Stay tuned…
If you like "Basic Framework of an HTML Web Page,"
please consider linking to this article:


