|
|
SITE MAP
Become a member
Members Login
Downloads
Backbone Tutorials
HTML Tutor
CSS Tutor
JavaScript Tutor
Website Promoting
Beyond The Basics
Meta Tags Tutor
HTML 4.01 tags/reference
Dynamic Websites
Non-technical Tips
Password Protection
Image Maps
Banners
Advanced forms tutor
Advanced frames tutor
Advanced tables tutor
Need Help
Contact Info
FAQ
Web Resources
|
HTML tutor- Lesson 4 In this lesson we'll learn about the font tags. The font tag has been removed from HTML 4.01 and so definitely don't use it on your website. Why devote the whole lesson to it then? As I said in chapter 2, I personally believe that it will make learning the "font part" of CSS much easier. In the future I will only say "This tag has been removed from HTML 4.01" and you should understand never to use it on your website. The <font> tag itself alone won't do anyting. <body> <font>Hello Dear World!</font> </body> However, the font tag does have three attributes associated with it: size, face, and color. Try the following. By the way, you should manually type these examples into notepad and not just copy them or just take a quick look at them. You won't be efficient at them until you physically practice them yourself. So yeah, type the following into notepad: <body> <font size="5">Hello</font> <font color="red">Dear</font> <font face="impact">World!</font> </body>
The size attribute changes the size of the font. Not too surprising. There are seven values-
1 being the smallest and 7 being the biggest. Don't get this confused with the heading tag-
heading tag has 6 values not 7 and size 6 is the smallest not biggest. In the color tag, you can either enter a color-name like red, purple, yellow etc. or a color-value like #cc66ff. Ignore the latter for now if you have no idea what hex codes or hex colors are.
In the face attribute you enter the face name like arial, times new roman etc. What
happens if the visitor to your website say didn't have so and so font installed on
their computer that you used on your website. This is important- they will see
the default font.
<body>
<font face="impact,verdana,arial black">
</body>
In this case if computer can't find impact, it looks for verdana, if no verdana is found, arial black is searched for, and if that fails too, the default font is used. That's all I got to say about the font tag. You can also use something called the typewriter or monospaced text. <body> <tt>Hello Dear World!</tt> </body> Default Text: Hello Dear World!Using the <tt> tag: Hello Dear World!
|
PGTUTOR is an award winning website. In the past 2 years, we've won over 20 legitimate awards. Go to our awards page to verify for yourself.
You're not taking a risk when buying our products. If for any reason you're unsatisfied with the quality of our product(s), we'll refund your money. Also, you get to keep the product you bought. |
||