TRENDING TOPICS

×

How to give height and width in an image tag?

By: Sonam Sharma | 16 June 2019

R

Rajeev Prakash

18 August 2019

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

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)