KnowledgeBoat Logo
|

Computer Studies

How will you resize a picture in an HTML document?

HTML Advanced Features

13 Likes

Answer

We can resize a picture by using the attributes Height and Width with <img> tag. Height specifies the height of the picture and width specifies the width of the picture.

Syntax:

<img src = "URL/Path" Height = "height in pixels" Width = "width in pixels">

Example:

<img src = "d:/images/computer.jpg" Height = "400" Width = "300">

Answered By

7 Likes


Related Questions