Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.sao.ru/cats/~satr/JS/REF/text.htm
Дата изменения: Thu Mar 26 16:45:00 1998
Дата индексирования: Tue Oct 2 05:20:57 2012
Кодировка:

Поисковые слова: arp 220
Text attribute examples

Bold Font Example

<P>My preferred browser is <B>Netscape Navigator</B>.

My preferred browser is Netscape Navigator.


Basefont Example

<BASEFONT SIZE="4"> <P><I>Netscape Navigator</I> lets the user select a comfortable base font size, but this can be reset for all or part of a page. <FONT SIZE="+3"> Doing so causes subsequent font size changes </FONT> <FONT SIZE="-1"> to execute relative to the new base font size.</FONT> <BASEFONT SIZE="3">

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

<P>As Alice ate the cookies, she felt herself grow <BIG> bigger, and <BIG>bigger, and <BIG> bigger.</BIG></BIG></BIG>

As Alice ate the cookies, she felt herself grow bigger, and bigger, and bigger.


Blinking Font Example

<P><BLINK> Blinking text </BLINK> can be annoying, so use it sparingly.

Blinking text can be annoying, so use it sparingly.


Inline Citation Example

<P>Mozilla said to the crowd, <CITE>"Visit Netscape’s web site." </CITE></P>

Mozilla said to the crowd, "Visit Netscape’s web site."


Code Example

<P>The <CODE>onLoad</CODE> attribute for the BODY tag lets you define an action that occurs when the document has finished loading. For example, <CODE>onLoad="function1(); function2(); return false;"</CODE>. Notice that the <CODE>onLoad</CODE> code should always return <CODE>false</CODE>. </P>

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

<P>We ship your products overnight <EM>for free</EM>!</P>

We ship your products overnight for free!


Font Example

<P>Here you see the effect of <FONT face="helvetica,arial,sans-serif" color=green size=+2> using the FONT tag to change the font to a green sans-serif font.</FONT> Now the font will change to a <FONT face="timesroman,serif" size=18 color=red> red font that has a size of 18 points.</font>

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

<P>Putting text in <I> italic </I> can slant its meaning.</P>

Putting text in italic can slant its meaning.


Keyboard Font Example

<P>At the first prompt, enter the user name <KBD>trainee</KBD> and at the next prompt enter the password <KBD>goodlearner</KBD>.</P>

At the first prompt, enter the user name trainee and at the next prompt enter the password goodlearner.


Small Font Example

<P> When Alice ate from the Caterpillar's mushroom, she grew <SMALL>smaller and <SMALL>smaller and <SMALL>smaller.</SMALL></SMALL></SMALL> </FONT>

When Alice ate from the Caterpillar's mushroom, she grew smaller and smaller and smaller.


Strike Example

<P><STRIKE>The judge ordered that the witness's testimony be struck from the record.</STRIKE> <P><S>Strike-through text often indicates text that has been changed.</S>

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

<P><STRONG>CAUTION!</STRONG> Do not press the reset key unless you have tried every other way to reboot the computer.</P>

CAUTION! Do not press the reset key unless you have tried every other way to reboot the computer.


Subscript Example

<P>The chemical notation for water is <CODE>H<SUB>2</SUB>0</CODE>.

The chemical notation for water is H20.


Superscript Example

<P>If Einstein was right, then <CODE>e=mc<SUP>2</SUP></CODE>.

If Einstein was right, then e=mc2.


Typewriter Font Example

<P>To run the program, type <TT>xyz</TT> at the command prompt.

To run the program, type xyz at the command prompt.


Underline Example

<P><U>All the text in this paragraph is underlined.</U></P>

All the text in this paragraph is underlined.


Variable Example

<P>In this example, the global variable <VAR>doc1</VAR> is bound to the current document.

In this example, the global variable doc1 is bound to the current document.