Core java tutorial for beginners
A tutorial blog which explains different core concepts related to Java along with programming examples
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Categories: Applets. No Comments on Applet Tag
3
(2)

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.

 


Subscribe to our monthly newsletter. Get notified about latest articles, offers and contests.


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

height=”300″ width=”400″

name=”applet1″

hspace=”20″ vspace=”20″>

</applet>

 

How useful was this post?

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Suryateja Pericherla

Suryateja Pericherla, at present is a Research Scholar (full-time Ph.D.) in the Dept. of Computer Science & Systems Engineering at Andhra University, Visakhapatnam. Previously worked as an Associate Professor in the Dept. of CSE at Vishnu Institute of Technology, India.

He has 11+ years of teaching experience and is an individual researcher whose research interests are Cloud Computing, Internet of Things, Computer Security, Network Security and Blockchain.

He is a member of professional societies like IEEE, ACM, CSI and ISCA. He published several research papers which are indexed by SCIE, WoS, Scopus, Springer and others.

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 *