You can specify the height and width of an image in HTML using the “width” and “height” attributes. For example:
```
```
This will display your image with a width of 500 pixels and a height of 600 pixels.
Note: Always specify both the height and width attributes for the images. If the height and width are set, the space required for the image is reserved when the page is loaded. Thus, the layout of the web page will not change when the image is fully loaded.
However, defining the width and height in HTML will not keep the aspect ratio of the image. If you want to keep the aspect ratio, it’s better to use CSS:
```
```