Home
HTML
HTML Images
Example 9: HTML Images
Run ❯❯
<!DOCTYPE html> <html> <head> <title>HTML Image Size by Width and Height Attribute</title> </head> <body> <h1>Width and Height Attribute</h1> <img src="aloevera.jpg" alt="An Image of Aloe Vera Plant" width="400" height="500"> <p>Using width and height attribute we have set the width of the image to 400px and height to 500 px.</p> </body> </html>