HTML Image Resize

The height and width attributes are used to specify the height and width of an image and the attribute values are specified in pixels by default. Tip: It is a good practice to specify both the height and width attributes for an image.


Other examples in Attributes (HTML Tutorial)
Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0