Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <applet> code Attribute

  • Last Updated : 26 Oct, 2020

The <applet> code attribute specifies a relative URL for applets java file to be loaded and executed. It is used to link a Java applet to the concerned HTML document. It specifies the file name of the Java applet.


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<applet code = "file_name"> 

Attribute Values: It contains a string value that represents the name of the java File that embedded in the HTML Document.


<!DOCTYPE html> 
    <applet code="HelloWorld" 

Here, HelloWorld is the class file, which contains the applet. The width and height attributes determine the width and height of the applet in pixels when it is opened in the browser.

Supported Browsers: The browser supported by <applet> tag are listed below:

  • Firefox
  • Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!