HTML and CSS Reference
In-Depth Information
12.2.3.1. Applet rendering
The browser creates an applet's display region in the containing text
flow exactly like an inline image: without line breaks and as a single
large entity. The browser downloads and executes the applet just after
download and display of the document and continues execution until the
code terminates itself or the user stops viewing the page containing the
applet.
12.2.3.2. The align attribute
As with an image or <iframe> , you can use the align attribute to control
the applet's display region with respect to its surrounding text, al-
though the standards prefer that you use respective Cascading Style
Sheet (CSS) alignment properties. Set the align attribute's value to top ,
texttop , middle , absmiddle , baseline , bottom , or absbottom , or use the
left and right alignments for wraparound content. For a detailed de-
scription, see section 5.2.6 .
12.2.3.3. The alt attribute
The alt attribute gives you a way to tell users gracefully that something
is missing if, for some reason, the applet cannot or will not execute on
their computer. Its value is a quote-enclosed message string that, like
the alt attribute for images, gets displayed in lieu of the applet itself.
The alt message is only for browsers that support applets. See sec-
tion 12.2.1.15 earlier in this chapter to find out how to inform users of
applet-incapable browsers why they can't view an applet.
12.2.3.4. The archive attribute
The archive attribute collects common Java classes into a single library
that is cached on the user's local disk. Once the data is cached, the
browser doesn't need to use the network to access an applet; it retrieves
 
Search WWH ::




Custom Search