HTML | applet width Attribute Last Updated : 13 Jan, 2022 Comments Improve Suggest changes Like Article Like Report The HTML applet width attribute is used to specify the width of an <applet> element. Note: This attribute is not supported by HTML5. Syntax: <applet width="pixels"> Attribute Values: pixels: It contains the pixels value that specifies the width of the applet element. Example: html <!DOCTYPE html> <html> <head> <title> HTML | applet width attribute </title> </head> <body> <applet code="HelloWorld" width=200 height=60> </applet> <h2> Hello GeeksForGeeks </h2> </body> </html> Output: 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 Comment More infoAdvertise with us Next Article HTML | applet width Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML | applet name Attribute The HTML | applet name attribute is used to specify the name of a <applet> element. Note : This attribute is not supported by HTML5. Syntax: <applet name="name"> Attribute Values: It contains a single value name that describes the name of the applet element. Example: html <!DOCTYPE ht 1 min read HTML | applet alt Attribute The HTML applet alt attribute is used to specify the alternate text for an applet element. It is useful when the applet element not displayed. It is used to give alternative information for an applet element. Note: This attribute is not supported by HTML5. Syntax: <applet alt="text"> Attribute 1 min read HTML | <applet> code Attribute 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. Note : The <applet> tag is not supported in HTML5. Syntax: <applet code 1 min read HTML | applet align Attribute The HTML applet align attribute is used to specify the alignment of the <applet> element or the content present inside the applet element. Note: This attribute is not supported by HTML5. Syntax: <applet align="left | right | center | justify";> Attribute Values: left: It sets the content 1 min read HTML | applet hspace Attribute The HTML applet hspace attribute is used to specify the number of whitespaces on the left and right side of an applet element. Note: This attribute is not supported by HTML5. Syntax: <applet hspace="pixels"> Attribute Values: pixels: It specifies the number of whitespaces on right and left of 1 min read Like