The APPLET
element can have an ALT
attribute.
An ALT
attribute is used by a browser that understands
the APPLET
tag but for some reason cannot play the
applet. For instance, if you've turned off Java in Netscape
Navigator 3.0, then the browser should display the ALT
text. Note that I said it should, not that it
does. The ALT
tag is optional.
<applet code="HelloWorldApplet"
codebase="http://www.foo.bar.com/classes" width="200" height="200"
align="right" hspace="5" vspace="10"
alt="Hello World!">
</applet>
ALT
is not used by browsers that do not understand
<APPLET>
at all. For that purpose <APPLET>
has been defined to require an end-tag,
</APPLET>
. All raw text between the opening and
closing <APPLET>
tags is ignored by a Java
capable browser. However a non-Java capable browser will ignore the
<APPLET>
tags instead and read the text between
them. For example the following HTML fragment says Hello to people
both with and without Java capable browsers.
<applet code="HelloWorldApplet"
codebase="http://www.foo.bar.com/classes" width=200 height=200
align=RIGHT hspace="5" vspace="10"
alt="Hello World!">
Hello World!<P>
</applet>