Horje
How to create Image Size - Width and Height

You can use the style attribute to specify the width and height of an image.


Full Example of Image Size

Image Size - Width and Height
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>Image Size</h2>

<p>Here we use the style attribute to specify the width and height of an image:</p>

<img src="https://itupto.com/avatar.png" alt="Girl in a jacket" style="width:500px;height:600px;">

</body>
</html>

Output should be:

Full Example of Image Size





Category:
Web Tutorial
Sub Category:
HTML Images
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference