t.
Attributes can also be useful for
<A Href="TestingCode.html">debugging applets</A>.
<P>

Applets get the values of attributes
using the getAttribute() method of the Applet class,
as shown in this 
<A Href="classes/AppWithAttribute.java">code example</A>.
(For a hint on viewing code examples, 
see the
<A Href="Examples.html">Code Examples</A>
page.)
This example reads the value 
of an applet-specific attribute called COLOR,
which can have a value of "white" or "red",
and displays a string in that color.
<