When an <img> tag is placed within an applet, it is ignored, unless the browser does not support Java. This feature can thus be used to diplay an image rather than have a blank area on the page.
An example appears below:
<!--applet starts here------------------------------------------> <APPLET CODEBASE="." CODE="hm.class" NAME="HotMedia" ARCHIVE="hm.zip" WIDTH=239 HEIGHT=50> <PARAM NAME="mvrfile" value="data/sample.mvr"> <IMG SRC="Image_for_no_Java.gif"> </APPLET> <!--applet ends here------------------------------------------>
The following example includes the HREF tag, which allows the user to click on the image and go somewhere else:
<!--applet starts here------------------------------------------> <APPLET CODEBASE="." CODE="hm.class" NAME="HotMedia" ARCHIVE="hm.zip" WIDTH=239 HEIGHT=50> <PARAM NAME="mvrfile" value="data/sample.mvr"> <A HREF="Link_for_no_Java.htm"> <IMG SRC="Image_for_no_Java.gif"> </A> </APPLET> <!--applet ends here------------------------------------------>