A.16 Miscellaneous Tags^603
Table A.32
Attribute Value Usage
alt A text description of the applet. Provides alternate content for visitors unable
to access the applet.
code The file name of a Java applet (.class extension);
required
Configures the name of the applet file.
codebase A folder name Configures the name of the folder that con-
tains the applet. This is needed if the applet
is not in the same folder as the Web page.
height Number of pixels Configures the height of the applet area.
id Alphanumeric, no spaces; the value must be unique
and not used for other idvalues on the same
XHTML document
Provides a unique identifier for the applet.
width Number of pixels Configures the width of the applet area.
The <applet>Ta g
<applet></applet>
The <applet>tag is used to specify the beginning of a Java applet area in the body of a
Web page. The closing tag, </applet>, specifies the ending of an applet area in the
body of a Web page. Table A.32 shows <applet>tag attributes and their values. The
<applet>tag and its attributes are deprecated.
The <param />Ta g
<param />
The <param>tag is used to pass values or parameters to an object or Java applet. This
tag is always used with either an <applet>or <object>tag.
The <nobr>Ta g
<nobr></nobr>
The <nobr>tag is not part of the W3C XHTML 1.0 specification. The tag is used to
contain areas on a Web page, such as groups of images, which should remain on the
same line regardless of the size of the browser window.
The <pre>Ta g
<pre></pre>
The <pre>tag handles text in a special way. Any text contained between <pre>tags is
considered to be preformatted text, such as computer program coding statements. Any
line breaks or spacing will be preserved. This tag is rarely used.
The <object>Ta g
<object></object>
The <object>tag can be used to place Java applets, audio, video, Flash, and other
media on a Web page. It is a container tag and should be closed with an </object>tag.
Table A.33 shows <object>tag attributes and values that are used to display media files.