|
ImgWidthAttribute
The img width attribute specifies the width of an image.
You are here: Home > HTML Reference > Elements > <img> element > width attribute UsageSee <img> for usage information and examples. ValuesThe width attribute specifies the width in pixels, and as such it must be a positive integer, or 0. Unlike widths in CSS, this attribute must NOT include the "px" unit of measure. The width attribute is always understood in pixels. ElementsYou can use the width attribute on the following elements:
Browser compatibility
Further reading |
Sign in to add a comment
