Applet Tag || Java Applets || Java Tutorial for beginners

Veröffentlicht am: 15 April 2022
auf dem Kanal: Join To Learn
3,252
55

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.


Auf dieser Seite können Sie das Online-Video Applet Tag || Java Applets || Java Tutorial for beginners mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Join To Learn 15 April 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,252 Mal angesehen und es wurde von 55 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!