| |
![]() | ![]() |
![]() By Alan Flum of Celestial Graphics Inc. |
Links To This
Guide: Introduction | More
Text Tags | Text Color and Size | Adding
Links | Images | Table
Basics | Great
Looking Pages | Forms | Going
Further | |
|
||
| In this section you will learn about the <font></font> tag. This tag will allow you to change text color and size. You will also be introduced to the "browser safe" color palette. Using the browser safe color palette will help guarantee that your colors will the same for all of your web site's visitors. If you came to this page in the middle of the tutorial you may want to go back to the Introduction. |
|
There
are other simple tags for modifying text. Lets say you want to change
the text color or size or type of font. As an example, lets change your
basic page:
Notice that the <font> is a little more complicated that the bold tag <b></b> or the italic tag <i></i>. The font has additional information or attributes about the font. In this case, size and color. Unlike a word processor, basic HTML, does not give exact text sizes like your word processor such as 10 point or 12 point text. Basic HTML uses relative text sizes. (Note: that HTML Cascading Style Sheets do Support exact font sizes, these are, however, beyond the scope of this basic tutorial). Unfortunately, the exact size of these depends on your browser and computer. Below are examples of different text sizes: This Is Size 1 This Is Size 2 This Is Size 3 This Is Size 4 This Is Size 5 This Is Size 6 This Is Size 7 The HTML for this would look like the following:
Try to cut and paste the above HTML into your text editor, save it as font.html, and view it in your browser by double clicking on it. The <Br> Tag and Text Color In the previous example, you probably noticed a new tag, <Br>. The <Br> tag is the line break tag. Use this to create a new line. If you want to skip a line simple use another <Br>. This tag is different than the other tags because it does not have a corresponding closing tag (no </Br>). This is because <Br> is not really modifying the text, it is simply indicating that a new line is needed. In the first example on the page the font tag had two attributes, size and color. Lets look at the color attribute. Lets look at the following three lines of text: This is Pure Red This is Pure Green This is Pure Blue The HTML for these three lines of text is: <font color="#FF0000">This is Pure Red<font><Br> <font color="#00FF00">This is Pure Green<font><Br> <font color="#0000FF">This is Pure Blue<font><Br>
|
|
Copyright
© by Acquired Knowledge Systems Inc.
Website Design by Celestial Graphics Privacy Policy | Site Security | Terms of Use | Contact and Internet Access Info | | About Us | Give Us Your Feedback | |