![]() |
VOOZH | about |
The HTML <object> width attribute is used to specify the horizontal dimension of the embedded object, defining the width of the displayed content within the webpage.
Syntax:
<object width="pixels">Attribute Values:
The below example illustrates the <object> width attribute in HTML:
Example: This example uses object width attribute to set the object width.
Output:
Explanation:
In HTML5, use the width and height attributes within the <object> tag to specify the horizontal and vertical dimensions of embedded content, respectively, defining its display size.
The browser supported by HTML <object> width attribute are listed below: