![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
Embed a Java applet into the document. A Java applet is a program, written in the Java language. The browser assigns a rectangle portion of the window to the applet in which it runs. The size of this region is set in the HTML page.
If the applet needs external parameters to run, you have to supply these with the PARAM element.
Note: This element is deprecated, and this DTD fragment is taken from the Transitional DTD. <!ELEMENT APPLET - - (PARAM | %flow;)* -- Java applet --> <!ATTLIST APPLET %coreattrs; -- id, class, style, title -- codebase %URI; #IMPLIED -- optional base URI for applet -- archive CDATA #IMPLIED -- comma separated archive list -- code CDATA #IMPLIED -- applet class file -- object CDATA #IMPLIED -- serialized applet file -- alt %Text; #IMPLIED -- short description -- name CDATA #IMPLIED -- allows applets to find each other -- width %Length; #REQUIRED -- initial width -- height %Length; #REQUIRED -- initial height -- align %IAlign; #IMPLIED -- vertical or horizontal alignment -- hspace %Pixels; #IMPLIED -- horizontal gutter -- vspace %Pixels; #IMPLIED -- vertical gutter -- >from the HTML 4.0 DTD, "Copyright © World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved."
Core attributes:
class
id
style
title
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
Value | Description |
---|---|
ABSBOTTOM |
Aligns the bottom of the applet window with the lowest item in the line.
This value is not present in the HTML 3.2 and 4.0 standards. |
ABSMIDDLE |
Aligns the middle of the applet window with the middle of the line.
This value is not present in the HTML 3.2 and 4.0 standards. |
BASELINE |
Aligns the bottom of the applet window with the baseline of the text in the
line. This result is the same as align="bottom".
This value is not present in the HTML 3.2 and 4.0 standards. |
BOTTOM | Aligns the bottom of the applet window with the baseline of the text in the line. This result is the same as align="baseline". |
CENTER | Aligns the middle of the applet window with the baseline of the text. This result is the same as align="middle", but this value is not present in the HTML 3.2 and 4.0 standards. So better use align="middle". |
LEFT | Places the applet window at the left margin of the page. |
MIDDLE | Aligns the middle of the applet window with the baseline of the text. This result is the same as align="center". |
RIGHT | Places the applet window at the right margin of the page. |
TEXTTOP |
Aligns the top of the applet window with the top of the text in the line.
This value is not present in the HTML 3.2 and 4.0 standards. |
TOP | Aligns the top of the applet window with the top of the largest item in the line. |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
! Netscape Navigator 3.0 does not support this attribute correctly, only on the right side of the applet there's free space, and its 2 times the supplied value for the attribute.
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
When the applet is "deserialized" the start() method is invoked but not the init() method. Attributes valid when the original object was serialized are not restored. Any attributes passed to this APPLET instance will be available to the applet.
You should use this feature with extreme caution. An applet should be stopped before it is serialized.
Either the attribute code or object must be present. If both code and object are given, it is an error if they must provide the same class names.
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
! Netscape Navigator 3.0 does not support this attribute correctly, only below the applet there's free space, and its 2 times the supplied value for the attribute.
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() |
If you want you can have a look at the source of the Java applet in the example.
![]() |
<APPLET code="APPLET1.class" width="200" height="50" alt="A Java example">
|
![]() |
![]() |
This applet uses an alignment in its definition,
|
![]() |
This applet uses an alignment in its definition, and a parameter to supply the text. |