How to give height and width in an image tag?

LAST READ: APR 14 2024 | Q. BY: SONAM SHARMA

R

Rajeev Prakash

There are two ways to give height and width an image tag, mentioned below:

Height & Width through the STYLE: In this section just pass height and width with the help in line CSS properties, for example - 

  • <img src="pass_img_address" style="height:200px; width:400px;" alt=" " title=" " />
Through the Height & Width attribute: Directly use height and width attribute an pass the value of the attribute, for example -
  • <img src="pass_img_address" height="200px" width="400px" alt=" " title=" " />

0 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)