Continue
Set Image Width/Height
You can set image width and height based on your requirement using width and height attributes. You can specify width and height of the image in terms of either pixels or percentage of its actual size.
Example
<!DOCTYPE html>
<html>
<head>
<title>Set Image Width and Height</title>
</head>
<body>
<p>Setting image width and height </p>
<img src="cat.png" alt="Cat Image" width="150" height="180"/>
</body>
</html>
This will produce the following result:
Setting image width and height
Comments
Post a Comment