HTML width property HTML tag Example A Flash animation with a height and width of 400 pixels: Try it » Browser support All major browsers support the width property. Definition and Usage The width attribute specifies the width of the object in pixels. Differences between HTML 4.01 and HTML5 none. Syntax Attribute values Value Description pixels The width of the object in pixels (for example, width="100"). HTML tag