|
|
|
||||||
| You are here: | Home » KidSpace » Learning HTML | ||||||
|
|
The Ask an IPL Librarian Reference Service will close between academic terms beginning December 20, 2007 at 10 p.m. (EST). We will reopen the service on Monday, January 5, 2008 at Noon (EST). We use this time to work behind the scenes to improve this service. Happy Holidays from all of us at the IPL!
Fonts and Text Styles WARNING! You really shouldn't use the <font></font> tags once you understand HTML better and after you learn CSS (which we'll explain a little later). However, since you're just starting to learn HTML, go ahead and use them for now. As you know, when writing HTML tags, you are giving instructions to the web browser on just how you want your web page to look. If you don't give specific instructions, the web browser will assume a few things. To explain, when you type in your text between the body tags, the web browser assumes that you want that text to be displayed a certain size because you haven't told it any differently. In other words, the web browser will assume a default value of 3, which is the size of the text that you are reading right now. However, you can make your words bigger or smaller by just giving more specific instructions to the web browser. So, to change the font size, first of all, you are going to need a pair of font tags: <font> and </font>. Next, you will need an attribute, which will give the web browser some additional instructions. In this case, you want to change the font size. So, to tell the web browser just what size you want, you must use the SIZE attribute. Also, you need to tell the web browser one more thing - what size to make the font. To do this, you simply tell the web browser a value. Now, to put it all together, you need to put both the attribute and the value inside the start font tag:
Here is what it will look like when you type it out:
In this example, the tags, attribute, and value are simply telling the the web browser that"I want the font to be size 6." Wondering just what size is 6 anyways? Good question. Here is the different sizes that you can use: 1 2 3 4 5 6 7
Also, looking back at the examples, notice that I put the value in quotation marks ("6"). So, be careful when you are typing.
Ready to learn more about Fonts and Text Styles? This resource originally created by Deborah Dunk. Updated on 28 Nov 2006
|
||||||
What is the IPL?
The Internet Public Library is a public library for the world wide web.
The Internet Public Library is hosted by The iSchool at Drexel, College of Information Science and Technology,
© 1995-2008 The Regents of the University of Michigan. All rights reserved.
© 2008, Drexel University, All Rights Reserved |
|||||||