CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>Image size</title> </head> <body> <h2>Image size</h2> <p>We can define size for an image using style attribute or by width and height attribute. See the below examle.</p> <img src="https://www.tutsinsider.com/wp-content/uploads/2019/08/coast.jpg" alt="coast" width="200" height="150" /> <img src="https://www.tutsinsider.com/wp-content/uploads/2019/08/ship.jpg" alt="ship" width="200" height="150" /> <img src="https://www.tutsinsider.com/wp-content/uploads/2019/08/taj-mahal.jpg" alt="taj-mahal" width="200" height="150" /> <img src="https://www.tutsinsider.com/wp-content/uploads/2019/08/plane.jpg" alt="plane" width="200" height="150" /> </body> </html>