HTML Image Resize
Example: 1
<html>
<head>
</head>
<body>
<img src="image1.gif"/>
</body>
</html>
<head>
</head>
<body>
<img src="image1.gif"/>
</body>
</html>
Output

If you want to resize the image, like height or width, you need to specify only height attribute.
Example: 2
<html>
<head>
</head>
<body>
<img src="image1.jpg" height="100">
</body>
</html>
<head>
</head>
<body>
<img src="image1.jpg" height="100">
</body>
</html>
Output

Here “height=100” indicates 100 pixels.
No comments:
Post a Comment