<!DOCTYPE html> <html lang="en"> <head> <title>Setting Image Width and Height Using style Attribute in HTML</title> </head> <body> <p><img src="examples/resources/img-beautiful.png" alt="beautiful" width="100px" height="100px"></p> <p><img src="examples/resources/img-beautiful.png" alt="beautiful" style="width:150px; height:150px"></p> </body> </html>