Home
HTML
HTML Images
Tryit: HTML image size
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!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="img_girl.jpg" alt="Girl in a jacket" style="width:500px;height:600px;"> </body> </html>