| Warning: include(http://www.studio6000.com/tutorside.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/studio60/public_html/html/lesson7.php on line 17 Warning: include() [function.include]: Failed opening 'http://www.studio6000.com/tutorside.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studio60/public_html/html/lesson7.php on line 17 |
Formatting FontsAs explained earlier, some opening tags will have attributes and values. These tags help define the tags even further. For example, when it comes to the color, size and style of the font you'll need to add attributes. Here are some examples of attributes for fonts.
As shown above, the attribute must be connected to the value with an equal sign and the value must be placed in quotes. Lets' try to use this great tool. Changing the font colorSay we want to change our font color to blue. First we'll need to insert the font tags:<body> <font> </font> </body> Then we'll need to insert the color attribute as follows: <body> <font color="blue"> </font> </body> Then we need to put the text that we want to appear as blue in between the opening and closing font tags. <body> <fontcolor="blue"> This text is blue. </font> </body> Please Note: The attribute must be included within the opening tag just before the greater sign (>). The result of the code above would be: This text is blue. Let's say you want your text to be green or orange. Easy enough. All you have to do is change the "blue" in the code to "orange", like so:
Alternatively, you can use the color code instead of the color name. A color code is a six digit code preceded by a pound sign (#) that represents any given color. For example: #FF0000 is the color code for red. It is always better to use the color code since some old browsers can't read the color name. All of the web safe color codes can be found on our color page. Here are some examples of the color code in use:
Changing the font sizeWe can also change the size of the text. In HTML the font sizes go from 1-7. Here are some examples of font sizes.
Changing the font faceYou can also change the face of the text. Here are some examples of safe font faces.
You can also include all three attributes together, as follows:
|