Now that you are familiar with the
way HTML tags work, you need to become familiar with some necessary
tags to make your web page function properly. The two major (necessary)
parts of a web page is the head and
body.
The head contains the title of the home page. This appears in the
title bar of your browser. The body is where all of the content
of your home page goes.
ALL web pages MUST start with the <html> tag itself and end
with the closing </html> tag.
Below you will see an example of a very simple web page. Notice
the beginning and ending tags both exist. Also, to make the code
easier to read, in case you forget an ending tag, indent certain
tags so they are easier to spot.
<html>
<head>
<title>My Home Page</title>
</head>
<body>
<h3>Welcome to my
Home Page!</h3>
<hr>
The 1st paragraph goes here.
The above "hr" tag is a "horizontal rule."
When looking at your document in the browser, you will see this
as a line.
<p>
The 2nd paragraph goes here.
The above "p" tag is a "paragraph."
</p>
<hr>
By the Webmanager
</body>
</html> |
Below is what the above code would look like on your browser:
Welcome to my Home Page!
The 1st paragraph goes here. The above "hr"
tag is a "horizontal rule." When looking at your
document in the browser, you will see this as a line.
The 2nd paragraph goes here. The above "p" tag
is a "paragraph."
By the Webmanager |
Continue to "How
to Make a List" |