Core java tutorial for beginners
A tutorial blog which explains different core concepts related to Java along with programming examples

March 1, 2016 Categories: Applets. No Comments on Applet Tag

In this article we will learn about the applet tag and its various attributes along with description of each attribute and sample HTML code.

 

applet Tag Attributes

Following are the various attributes of applet tag:

  • code: Used to specify the name of the applet class.
  • codebase: Used to specify the location at which the applet code (class) is available.
  • width: Used to specify the width of the applet display area.
  • height:¬†Used to specify the height of the applet display area.
  • name: Used to specify the name of the applet which is helpful in distinguish one applet from another when there are multiple applets in the same webpage.
  • hspace: Used to specify the horizontal space to the left and right of the applet display area.
  • vspace: Used to specify the vertical space to the top and bottom of the applet display area.
  • align: Used to specify the alignment of the applet display area with respect to other HTML elements.

 

Above listed attributes are the most frequently used attributes of the applet tag. Below is sample HTML code using some of the attributes specified above.

<applet code=”MyApplet” codebase=”http://www.abc.com/applets/”

height=”300″ width=”400″

name=”applet1″

hspace=”20″ vspace=”20″>

</applet>

 

Note: Do you have a question on this article or have a suggestion to make this article better? You can ask or suggest us by filling in the below form. After commenting, your comment will be held for moderation and will be published in 24-48 hrs.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll Up
Thank you for visiting startertutorials.com! If you like this website do share with your friends by clicking on the social icons available on the left hand side.

As the domain name is quite large to remember, use this short domain to visit this site. Short domain: stuts.me