The ‘style‘ attribute can be employed to define the dimensions of an image, including its width and height.
<img src=”image.jpg” alt=”your image” style=”width:500px;height:600px;”> |
The width, height, and style attributes are all valid in HTML.
However, we recommend using the style attribute as it prevents stylesheets from altering the size of images.
<!DOCTYPE html>
|