Chapter 1 -
Basic Tags of HTML
HTML tags are the
basis for the language of HTML. Simply put, HTML IS
JUST tags. HTML tags are words or commands
that are inside of less than (<) and greater than (>) signs. HTML
tags can be written in CAPITAL LETTERS or lower case letters. The
tags must be spelled correctly, and in the correct place on your html page.
This means that you have to place the correct HTML tag in the corresponding
place. Here is an example of correct placing of an HTML tag.
<html>
<head><title>Put your title
here.</title></head>
<body>Put your body
here.</body>
</html>
| What are beginning and
ending tags? |
<body>Look
at my page!</body>
^----This is
an open tag ^----This
is a close tag.
Note
the forward slash right after the opening part of the close tag. This
indicates that the <body> tag is now closed</body>, and will no
longer be used in this HTML page. Here is another example of an opening
and closing HTML tags...
This is
<b>bold text</b>.
Here is a brief
explanation and example of the beginning HTML tags you will need to know to
create a simple HTML page.
| Opening HTML Tag |
Corresponding Closing
Tag |
Explanation of Tag |
| <html> |
</html> |
This is the FIRST Tag in an
HTML file. There should be nothing before this. |
| <head> |
</head> |
This is the heading tag.
This tag is placed after the <html> tag but before the
<body> tag. |
| <title> |
</title> |
This tag will display the
contents between the title tags on the bar on the top of the browser.
Here is an example:
In Netscape Navigator...
Netscape - [Title is placed
here] OR Title is placed here - Netscape [depending on version]
In Microsoft Internet
Explorer...
Title is placed here -
Microsoft Internet Explorer
|
| <body> |
</body> |
This is the "meat and
potatoes" of your html file. After this tag you would write
the majority of what a browser would display. |