MMDT1021 Chapter 21 Notes - page 1
Basefont
Do NOT use the basefont tag. Browser support is inconsistent. |
Changing the Font face
|
Code | Result |
---|---|
Text before <font face="arial">Arial</font> Text after |
Text before Arial Text after |
Text before <font face="Comic Sans MS">Comic Sans MS</font> Text after |
Text before Comic Sans MS Text after |
Changing the Font Size
Using the FONT tag.Code | Result |
---|---|
Text before <font size="1">Size 1
text</font> Text after |
Text before Size 1 text Text after |
Text before <font size="+1">1 size
larger text</font> Text after |
Text before 1 size larger text Text after |
Text before <big>1 size larger text</big>
Text after |
Text before 1 size larger text Text after |
Text before <small>1 size smaller
text</small> Text after |
Text before 1 size smaller text Text after |
Changing the Font Color
You can use the HTML Color Names.
Code | Result |
---|---|
Text before <font
color="red">Some red text</font> Text after |
Text before Some red text Text after |
Text before <font
color="blue">Some blue text</font> Text after |
Text before Some blue text Text after |
Text before <font
color="teal">Some teal text</font> Text after |
Text before Some teal text Text after |
You can use the RGB hex codes if you prefer.
Code | Result |
---|---|
Text before <font color="#FF0000">Some
red text</font> Text after |
Text before Some red text Text after |
Text before <font color="#0000FF">Some
blue text</font> Text after |
Text before Some blue text Text after |
Text before <font color="#008080">Some
teal text</font> Text after |
Text before Some teal text Text after |
Or you can change the default color of ALL the text on a page.
Code | Page |
---|---|
... |
Result Source |
... |
Result Source |
... |
Result Source |
Changing the Color of Links
This will be covered in a future class date. |
Making Text Blink
This only works in older Netscape browsers. Not a recommended tag to use. |
Code | Result |
---|---|
<blink>This text is
blinking</blink> |
Code | Page |
---|---|
... |
Result Source |