/* related posts with thumb nails */

short notes an Applet tag (or) the attributes of the applet tag:

Applets are embedded in HTML documents with the tag. Any number of tags can be embedded in a single HTML file. It contains attributes that identify the applet to be displayed and, optionally, give the Web browser hints about how it should be displayed. The size-indicating attributes, such as height and width can be used inside the applet tag. Any number of tags that contain application-specific parameters to be passed to the applet can be written within the tag. Code, Width and Height attributes are minimum requirements to place the applet on a web-page.

Syntax:

[attribute=value] .. >

[name=parameter-name value=“param-value”>]

[name=parameter-name value=“param-value”>]

…..

Attributes: Attributes are name and value pairs that are interpreted by a Web browser or applet viewer. Attributes of the tag specify general features that apply to all applets, such as size and alignment. Three attributes, code, width, and height, are always required in the tag. All other attributes are optional. Attributes allowed in tag are listed below.

· CODEBASE (codebaseURL): This OPTIONAL attribute specifies the base URL of the applet or the directory that contains the applet. If this attribute is not specified, then the document's URL is used.

· ARCHIVE (archiveList): This OPTIONAL attribute describes one or more archives containing classes and other resources that will be "preloaded". The classes are loaded using an instance of an AppletClassLoader with the given CODEBASE.

· CODE (appletFile): This REQUIRED attribute gives the name of the file that contains the applet's compiled Applet subclass. The value appletFile can be of the form classname.class or of the form packagename.classname.class..

· ALT (alternateText): This OPTIONAL attribute specifies any text that should be displayed if the browser can't run Java applets.

· NAME (appletInstanceName): This OPTIONAL attribute specifies a name for the applet instance, which makes it possible for applets on the same page to find and communicate with each other.

· WIDTH, HEIGHT (in pixels): These REQUIRED attributes give the initial width and height (in pixels) of the applet display area.

· ALIGN (alignment): This OPTIONAL attribute specifies the alignment of the applet. The possible values of this attribute are the same as those for the IMG tag: left, right, top, texttop, middle, absmiddle, baseline, bottom, absbottom.

· VSPACE, HSPACE (in pixels): These OPTIONAL attributes specify the number of pixels above and below the applet (VSPACE) and on each side of the applet (HSPACE).

· : This tag is the only way to specify an applet-specific attributes. Applets access their attributes with the getParameter() method.

Related Topics:

0 comments:

Post a Comment