The HTML APPLET Tag
• The syntax for a fuller form of the APPLET tag is shown here. Bracketed items are optional.
APPLET
[CODEBASE = codebaseURL]
CODE = appletFile
[ALT = alternateText]
[NAME = appletInstanceName]
WIDTH = pixels HEIGHT = pixels
[ALIGN = alignment]
[VSPACE = pixels] [HSPACE = pixels]
[PARAM NAME = AttributeName VALUE = AttributeValue]
[ PARAM NAME = AttributeName2 VALUE = AttributeValue]
. . .
[HTML Displayed in the absence of Java]
/APPLET
• CODEBASE [CODEBASE = codebaseURL]
o CODEBASE is an optional attribute that specifies the base URL of the applet code, which is the directory that will be searched for the applet’s executable class file
• CODE CODE = appletFile
o CODE is a required attribute that gives the name of the file containing your applet’s compiled .class file.
• ALT
o The ALT tag is an optional attribute used to specify a short text message that should be displayed if the browser recognizes the APPLET tag but can’t currently run Java applets.
• NAME
o NAME is an optional attribute used to specify a name for the applet instance.
o Applets must be named in order for other applets on the same page to find them by name and communicate with them.
• WIDTH and HEIGHT
o WIDTH and HEIGHT are required attributes that give the size (in pixels) of the applet display area.
• ALIGN
o ALIGN is an optional attribute that specifies the alignment of the applet. This attribute is treated the same as the HTML IMG tag with these possible values: LEFT, RIGHT, TOP, BOTTOM, MIDDLE, BASELINE, TEXTTOP, ABSMIDDLE, and ABSBOTTOM.
• VSPACE and HSPACE
o These attributes are optional. VSPACE specifies the space, in pixels, above and below the applet. HSPACE specifies the space, in pixels, on each side of the applet.
• PARAM NAME and VALUE
o The PARAM tag allows you to specify applet-specific arguments in an HTML page. Applets access their attributes with the getParameter( ) method.
On this page of the site you can watch the video online Applet Tag || Java Applets || Java Tutorial for beginners with a duration of hours minute second in good quality, which was uploaded by the user Join To Learn 15 April 2022, share the link with friends and acquaintances, this video has already been watched 3,252 times on youtube and it was liked by 55 viewers. Enjoy your viewing!