width attribute | width property
Defines the width of an element.
![]() ![]() |
Syntax
| HTML |
|---|
<element width="p" ... > |
| JavaScript |
|---|
p = object.width |
Property values
Type: Object
The associated width of an element.
Standards information
- Scalable Vector Graphics (SVG) 1.1, Appendix M
Remarks
A value of 0 disables rendering of the element. A negative value is an error.
See also
- SVGFEBlendElement
- SVGFEColorMatrixElement
- SVGFEComponentTransferElement
- SVGFECompositeElement
- SVGFEConvolveMatrixElement
- SVGFEDiffuseLightingElement
- SVGFEDisplacementMapElement
- SVGFEFloodElement
- SVGForeignObjectElement
- SVGFEGaussianBlurElement
- SVGFEImageElement
- SVGFEMergeElement
- SVGFEMorphologyElement
- SVGFEOffsetElement
- SVGFESpecularLightingElement
- SVGFETileElement
- SVGFETurbulenceElement
- SVGFilterElement
- SVGImageElement
- SVGMaskElement
- SVGPatternElement
- SVGRect
- SVGRectElement
- SVGSVGElement
- SVGUseElement
Show:

