|
|
The Online Promoters
HTML Tutorial
Chapter 4: Other Tags
The 'center' tag
The center tag pretty much explains itself. The opening center tag is <center> and the closing center tag is </center>. Whatever you put between will be centered on the current line.
Example of 'center' tag:
Public Works
(<center>Public Works</center>)
The 'body' attributes
In Chapter 1 you learned the BODY tag. The BODY tag has many attributes. Here are a the most useful ones:
- BACKGROUND="location_of_image" (background image)
- BGCOLOR="#hexadecimal_here" (background color)
- LINK="#hexadecimal_here" (color of links)
- VLINK="#hexadecimal_here" (color of links the user has already visited)
- TEXT="#hexadecimal_here" (text color)
Your Own HTML Page
Right click in the centre of the image below, and select "Save Image As" / "Save Picture As", or similar. Save it as "bgnd.gif" in the same directory where your home page "home.html" is stored.
Add the following to your HTML page ("home.html"): (the red text is what to add)
<html>
<head>
<title>My Home Page</title>
</head>
<body background="bgnd.gif">
<center><h1>YOURNAME's Home Page</h1></center>
<hr>
This is the home page of <b>YOURNAME</b>.
<p>Type something about yourself here. Describe briefly who you are and what you do for a living. Remember to use bold and italic text for emphasis.</p>
</body>
</html>
Save the text file as "home.html".
|
|