Text Attribute Examples
Bold Font Example
My preferred browser is Netscape Navigator.
My preferred browser is Netscape Navigator.
Basefont Example
Netscape Navigator lets the user select a comfortable
base font size, but this can be reset for all or part of a page.
Doing so causes subsequent font size changes
to execute relative to the new base font size.
Netscape Navigator lets the user select a comfortable
base font size, but this can be reset for all or part of a page.
Doing so causes subsequent font size changes
to execute relative to the new base font size.
Bigger Font Example
As Alice ate the cookies, she felt herself grow bigger, and bigger, and bigger.
As Alice ate the cookies, she felt herself grow bigger, and bigger, and bigger.
Blinking Font Example
can be annoying, so use it sparingly.
can be annoying, so use it sparingly.
Inline Citation Example
Mozilla said to the crowd, "Visit Netscape’s web site."
Mozilla said to the crowd, "Visit Netscape’s web site."
Code Example
The onLoad
attribute for the BODY tag lets
you define an action that occurs when the document has
finished loading. For example,
onLoad="function1(); function2(); return false;"
.
Notice that the onLoad
code should always return
false
.
The onLoad
attribute for the BODY tag lets
you define an action that occurs when the document has
finished loading. For example,
onLoad="function1(); function2(); return false;"
.
Notice that the onLoad
code should always return
false
.
Emphasis Example
We ship your products overnight for free!
We ship your products overnight for free!
Font Example
Here you see the effect of using the FONT tag to change the font to a green sans-serif font. Now the font will change to a red font that has a size of 18 points.
Here you see the effect of using the FONT tag to change the font to a green sans-serif font. Now the font will change to a red font that has a size of 18 points.
Italic Example
Putting text in italic can slant its meaning.
Putting text in italic can slant its meaning.
Keyboard Font Example
At the first prompt, enter the user name trainee and at the next prompt enter the password goodlearner.
At the first prompt, enter the user name trainee and at the next prompt enter the password goodlearner.
Small Font Example
When Alice ate from the Caterpillar's mushroom, she grew smaller and smaller and smaller.
When Alice ate from the Caterpillar's mushroom, she grew smaller and smaller and smaller.
Strike Example
The judge ordered that the witness's testimony be struck from the record.
Strike-through text often indicates text that has been changed.
The judge ordered that the witness's testimony be struck from the record.
Strike-through text often indicates text that has been changed.
Strong Example
CAUTION! Do not press the reset key unless you have tried every other way to reboot the computer.
CAUTION! Do not press the reset key unless you have tried every other way to reboot the computer.
Subscript Example
The chemical notation for water is H20
.
The chemical notation for water is H20
.
Superscript Example
If Einstein was right, then e=mc2
.
If Einstein was right, then e=mc2
.
Typewriter Font Example
To run the program, type xyz at the command prompt.
To run the program, type xyz at the command prompt.
Underline Example
All the text in this paragraph is underlined.
All the text in this paragraph is underlined.
Variable Example
In this example, the global variable doc1 is bound to the current document.
In this example, the global variable doc1 is bound to the current document.