Search the Whole World Here.,.,

Size Attributes

Size Attributes

Size Attributes

HTML images are defined with the  tag.
The filename of the source (src), and the size of the image (width and height) are all provided as attributes:

Example

<img src="w3schools.jpg" width="104" height="142">
Try it Yourself »
The image size is specified in pixels: width="104" means 104 screen pixels wide.
You will learn more about images and the tag later in this tutorial.

Ads by Google