Learn HTML part 15

Image Resizing

To define the image size use the width and height attributes.
The value can be specified in pixels or percentage.
For an example 
<html>
<head>
<title> First page </title>
</head>
<body>
<img src="img4.png" height="100px" width="100px" alt="img" />
Or
<img src="img4.png" height="100%" width="100%" alt="img" />
</body>
</html>

Result

Post a Comment

0 Comments