HTML files
are just normal text files. They usually
have an extension of .htm, .html, or
.shtml.
To denote
the various elements in an HTML document,
you use tags. HTML tags consist of a
left angle bracket (<), a tag name,
and a right angle bracket (>). Tags
are usually paired (e.g., <H1>
and </H1>) to start and end the
tag instruction. The end tag looks just
like the start tag except a slash (/)
precedes the text within the brackets.
Every web
page consists of the following elements:
<html>
<head>
</head>
<body>
</body>
</html>
HTML documents have two (2) parts, the
head and the body.
Notice that
the <html> </html> tags
are the first and last items on the
page. This element tells your browser
that the file contains HTML-coded information.
The Title
of the page is placed, within tags,
between the <head> </head>
tags. This is the Title that shows in
the Title Bar of the browser when you
visit a web page, but the title does
not show up on the page itself. Example:
<html>
<head>
<title>Title of Page</title>
</head>
<body>
</body>
</html>
Nothing else
in the <head> </head> section
shows up on the web page.
Everything
that is presented on the web page is
placed between the <body> </body>
tags. Most of your content ends up there.
<html>
<head>
<title>Example</title>
</head>
<body>
This is an example.
</body>
</html>
For example,
check out how the above HTML page looks
on the web. Go ahead and select View
- - Source from your Browser, to see
what the HTML code looks like on that
page.