TOP CATEGORIES

×

How to give height and width in an image tag?

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: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)