how to change the width and height of an image in html code example
Example 1: how to change the size of an image in html
<img src='image.jpg' alt="Image" height="42" width="42">.
Example 2: how to change the height of an image in html
<img src="smiley.gif" alt="Smiley face" height="42" width="42">