width

Jump to: navigation, search

width

This page has been flagged with the following issues:


W3C Recommendation

Needs Summary: This article does not have a summary. Summaries give a brief overview of the topic and are automatically included on some listing pages that link to this article.


Applies to  ?

The width property is a standard HTML attribute. The value of this attribute is usually an integer.

It is very common to see HTML tags like images, iframes or object elements have width (and height) attributes.

Examples

HTML

<img src="smiley.gif" alt="Smiley face" height="42" width="42">

Notes

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels in C++. In Microsoft Internet Explorer 5 it is possible to set the width property, but doing so has no effect on the rendering of the frame.

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]