All Pages All Books|
|
||||
|
|
35
|
|||
|
|
Chapter 3 — Introduction to HyperText Markup Language
|
|||
|
|
||||
|
|
||||
|
Place the preceding code into the About Me section of your MySpace profile.
How It Will Look
As you’ll see, the definition list (see Figure 3-14) is not as neat as the unordered or ordered list but might come in handy if you’re ever doing a glossary of some kind.
|
||||
|
|
||||
![]() |
||||
|
|
||||
|
Figure 3-14: The definition list might come in handy for a glossary.
|
||||
|
|
||||
|
Adjusting Your Fonts
|
||||
|
|
||||
|
I’m reluctant to present the <font> tag because much of what it allows you to do can be done much better with cascading style sheets (CSS), which are covered in Chapter 5. The problem with the <font> tag is that you need to use it every time you want to change the font attributes, which can become very repetitive. However, the <font> tag may come in handy from time to time, particularly if you want to do something quick and dirty, and you’ll probably see it when looking at other HTML code, which is why I’ve included it here.
Format
<font size=n face=”font” color=”color”> text </font>
|
||||
|
|
||||
|
The three attributes are size, face, and color.
Size
The size (the n value shown in the preceding line of code) can be in the range of 1 to 7, with 1 being the smallest size and 7 being the largest.
Example
<font size=” l”>This is font size l</fontxbr> <font size=”2”>This is font size 2</fontxbr> <font size=”3”>This is font size 3</fontxbr> <font size=”4”>This is font size 4</fontxbr> <font size=”5”>This is font size 5</fontxbr> <font size=”6”>This is font size 6</fontxbr> <font size=”7”>This is font size 7</fontxbr>
|
||||
|
|
||||
|
Place the preceding code into the About Me section of your MySpace profile.
|
||||
|
|
||||
All Pages All Books