HTML Tutorial by David K. Small ©
Code for Lesson 3, Sample Page (page03.htm)
Note:
Remember to save the background image blueback.jpg
in the same folder as your own sample page03.htm page
otherwise you will just have a white or grey background.
Your line spacing does not have to be
the same as shown below.
For your convenience, I have shown all the tags in color.
Notice when I used the FONT tag to change the text color, I did not have to use any other attribute in that tag, and once I closed the tag, the remaining text staying the same.
The code begins below this line.
<HTML>
<HEAD>
<TITLE>My Third Web Page</TITLE>
</HEAD>
<BODY BACKGROUND="blueback.jpg">
<CENTER>
<FONT FACE="verdana,arial,helvetica,sans serif" SIZE=4 COLOR="#000000">
This is your <FONT COLOR="#339900"><B>third web page</B></FONT> example.<P>
There should still be a textured background.<P>
</FONT>
</CENTER>
<FONT FACE="verdana,arial,helvetica,sans serif" SIZE=2 COLOR="#000000">
The text in the first two centered sentences above should be larger (size 4) than in this paragraph. The text in this paragraph should be size 2. The words "third web page" in the first sentence should be green and bold. All of the text on this page should be in a sans serif font (plain text). Look at the top left of your screen, the top of your browser window should say "My Third Web Page" if you remembered to change the TITLE tag.
</FONT>
</BODY>
</HTML>