Home
HTML
HTML Attributes
Tryit: width and height attributes
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>Width and Height Attributes</h2> <p>The width and height attributes of the img tag, defines the width and height of the image:</p> <img src="img_girl.jpg" width="500" height="600"> </body> </html>