/* related posts with thumb nails */

Applet Tag and Its Attributes:

Applets are embedded in HTML documents with the <applet> tag. Any number of <applet> 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 <param> tags that contain application-specific parameters to be passed to the applet can be written within the <APPLET> tag. Code, Width and Height attributes are minimum requirements to place the applet on a web-page.

     <APPLET   code="MyApp.class" width=200 height=200  [attribute=value] .. >
      [<param name=parameter-name value=“param-value”>]
      [<param 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 <applet> 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 <applet> tag. All other attributes are optional. Attributes allowed in <APPLET> 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).
·         <PARAM NAME = appletAttribute1 VALUE = value>: This tag is the only way to specify an applet-specific attributes. Applets access their attributes with the getParameter() method.
Related Topics:


Post a Comment