LESSON 2 - The <FONT> Tag - Changing The Size, Color and Face Of Your Text.
In this lesson you will learn how to change the:
The SIZE, COLOR, FACE are Attributes of an HTML tag, FONT.
ATTRIBUTES are additional formatting codes that can be added to normal HTML tags to improve or enhance the tag. The general form of a tag with attributes is:
<WORD ATTRIBUTE1, ATTRIBUTE2,...>
An example would be: <font size=4 color=#FFFF00 face="times new roman">.
Almost all HTML TAG will have one or more attributes. Why am I mentioning this now? So, that in future lessons you will remember the word ATTRIBUTE and know what it means.
Size Of Text
Then click on the Font Tag icon one of the font options to use. In this case we will use font size.
<font size="">first web page</font>
In this case we will use FONT SIZE and insert 6 as the size so it now looks like this:
<font size="6">first web page</font>
When you click on the Preview tag you will see:
It is not necessary to save the page with each change as Preview will show the page with the changes. But, I recommend that you save the page often by using the SAVE ICON.
Now the size we used, 6, could be any number from 1 to 7, with 7 being the largest and 1 being the smallest. You can try different size and see what happens.
The face attribute can have a 2nd, 3rd, etc. name mentioned in the tag just in case the visitor to your page doesn't have your first choice for a face. So you can add a 2nd or 3rd face to the tag by positioning your cursor after the impact and before the " and just typing in the font name.
<font face="face1, face2, face3,...">
where face1, face2, face3, etc. are names of various faces, e.g. verdana,arial,village square.
<font size=n color="#XXXXXX" face="face1, face2, face3,...">
You should use the font icon under the font tab, or use FORMAT > FONT in the tool bar, to select the font you want for any characters.
Remember to click the SAVE icon after you have made changes to an existing file.
Now that you know all about TEXT on your page let's get some color on the page.
ATTRIBUTES OF A HTML TAG
Now to continue on with changing the size of your text. Highlight the words, first web page by positioning your cursor either at the start of the words or end of the words and, while holding down the left cursor button, move to the other end of these words.
NOTE: - if the visitor to your site does not have the font you specify for your text they will only see their default text.
TO REVIEW
<font> is used to change the size, color and/or the face of your text. This HTML TAG has three attributes: SIZE, COLOR, and FACE. A complete tag would look like this: