Skip to content
Related Articles

Related Articles

HTML | applet width Attribute

View Discussion
Improve Article
Save Article
  • Last Updated : 13 Jan, 2022
View Discussion
Improve Article
Save Article

The HTML applet width attribute is used to specify the width of an <applet> element.

Note: This attribute is not supported by HTML5.


<applet width="pixels">

Attribute Values:
pixels: It contains the pixels value that specifies the width of the applet element.


<!DOCTYPE html>
        HTML | applet width attribute
    <applet code="HelloWorld" 
        width=200 height=60>
        Hello GeeksForGeeks


In the above example, the applet file HelloWorld can use the variable named message to access the value stored in it, which is “HelloWorld”.

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

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

Start Your Coding Journey Now!