TOP CATEGORIES

×

What is the width and height property of an image in CSS?

H

Himanshu Tony

Width and Height Property of an Image

The width and height property specifies the width and height of an image element.

Image CSS property example of Height & Width (Internal OR External CSS  File)

img { 

   width: 300px;

   height: 300px;

}

<img src="image_URL" />

Inline Height & Width Property of an image tag

<img src="image_URL" style="width: 300px; height:300px" />

Example of Image (1140px width and 500px heght)

CDNIS_1
0 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)