HTML and CSS Reference
In-Depth Information
Figure 7-42
alternate text as rendered in the web page
5. Re-enable the Java applet in your browser.
Embedding Java with the applet Element
If you are working with legacy pages containing old HTML code, you might encounter
Java programs embedded in the page with the applet element
<applet code=” url ” width=” value ” height=” value ” alt=” text ”>
parameters
</applet>
where url is the location and name of the Java class file, the width and height attri-
butes set the dimensions of the applet window, the alt attribute defines alternate text
to be displayed by the browser if it doesn't support Java, and parameters represents the
parameters associated with the applet. For example, to embed the CreditRoll.class applet
using the applet element, you could enter the code
<applet code=”CreditRoll.class” width=”250” height=”250”>
parameters
</applet>
with parameters employing the same <param> tags you used with the object element.
The <applet> tag was never part of the W3C specifications for HTML and XHTML, and
is gradually being phased out by current browsers.
 
Search WWH ::




Custom Search