Skip to main content
width attribute | width property

Sets or gets a value that you can use to implement your own width functionality for the object.



HTML<element width="p" ... >

p = object.width


Property values

Type: String

the value for width property.

Standards information


This property has no default value.

The functionality specified by the HTML 4.0 standard is not implemented.

There is no functionality implemented for this property unless it is defined by the author.

width was introduced in Microsoft Internet Explorer 6.

See also