|
|
![]() A Marketing Group Joint Venture
"Out Of The Ashes Of Deceit, Comes A Name You Can Trust" |
|
|
Lesson 4: The Center Tag through Your Own HTML Page THE CENTER TAG:
The center tag pretty much explains itself. The opening tag is
<center> and the closing tag is
</center>. Whatever you put in between will be centered on the page, on the current line.
Example:
<center><h1> Center Works </h1></center>
BODY ATTRIBUTES:
In part 1 you learned the BODY tag. The BODY tag has many
attributes.... here are the most
useful ones.
BACKGROUND="location_of_image" - Background image
BGCOLOR="#hexadecimal_here" - Background Color
LINK=# Hexadecimal_here" - Color of Link
VLINK="hexadecimal_here" - Color of links the user has already visited
TEXT="hexadecimal_here" - text color
YOUR OWN HTML PAGE:
Try this as an example on your own HTML page.
Save an image by right clicking in the center of the image, and select
"Save as" or "Save image
as" or "Save picture as", or similar. Save it as "bgnd.gif" in the same directory where your home page "Home.htm" is stored.
Add the following to your HTML page ("Home.htm"): (The text in blue 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> Your Name </b>
<p> Type something about yourself here. Remember to use bold and
italic text, for emphasis.</p>
</body>
</html>
Save the text file as "Home.htm"
© Copyright 2005- 2010
Global-Marketing-Resource.com except
|