Computer Science, asked by cakash3401, 1 year ago

How can i change all images to same height and width in html?

Answers

Answered by Anonymous
5
Edit the file you want the image to show. eg: default.html.

Add this line to your script. <img src="imagefile.jpg" alt="Image" height="42" width="42"> ...

Replace height and width to your wish example height="19" width="20"

Save the file and open the file using any browser to see the effect.

HOPE HELPS ✌️✌️
Answered by tejasgupta
2

Hi. In HTMl, the img tag is used to insert images. It is an open tag. To change the size of an image in HTMl, the height and width tags of the img tag are used. However, to change the size of all images in a HTML page, CSS should be used. Insert the opening and closing style tags in the head part of the document and inside them, write the following code:

img {height:100px; width:100px}

Here, replace 100px with any dimension you want. The size of all images in that HTML page will change accordingly. Hope it helps!

Similar questions