HTML | applet width Attribute
Last Updated :
13 Jan, 2022
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:
<!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:
Share your thoughts in the comments
Please Login to comment...