HTML Tutor
Lesson 1
Lesson 2
   Lesson 3
Lesson 4
Lesson 5
Lesson 6

Lesson 7

iDragstor Lab


  
Lesson 3 <BODY>

Remember the BODY tag?

The BODY tag determines how the backgroung, text and links will look like. That's accomlished by using attributes. Let's get right to the point:
<BODY BGCOLOR=white TEXT=black LINK=blue ALING=green VLINK=red>
</BODY>

If this looks too complicated don't worry it's not that bad. Let's look at each one of the attributes:
BGCOLOR=white
Defines the background color: red, blue, green, black and almost any other color you can think of.
TEXT=black
Defines the text color. It has the same value as BGCOLOR attribute(red, blue, green).
LINK=blue
Defines the link color. A link will get you to other web pages when you click on it.
ALINK=purple
After-attribute defines the link color after you clicked it.
VLINK=red
Visited-attribute defines the link color of the link that you had already visited. Don't worry the browser is smart enough to figure all that out on its own.

Few more usefull tags..
In the last lesson I told you that most tags have the beginning and ending tags. Here are few exceptions:
<P>      <BR>      <HR>     
<P>     P-Paragraph tag is used to start a new paragraph.
<BR>   BR-Brake tag is used to start a new row.
<HR>   HR-Horizontal Rule tag is used when you want to draw a horisontal line.

Try out this next example. Like in the last lesson use the notepad and copy the code. Save the file as (save as) Lesson3.html in the HTMLTutor directory and open it using your favorite browser. Good luck!!!

<HTML>
<HEAD>
<TITLE>Lesson 3</TITLE>
</HEAD>
<BODY BGCOLOR=yellow TEXT=red>
<P>This is the start of a new paragraph. When you write about something that makes sense, not like this here :), you may use<BR>to move to the next row. You can practice drawing a line by using <HR> tag. Bravo. You made it to the end of this lesson.
You could accomlish the same thing if you went to iDragstor lab.
</BODY>
</HTML>

Previous Lesson Introduction Next Lesson