0
We web
How to know the size of my image input please help me out please https://code.sololearn.com/W91quRqFUKpX/?ref=app
2 Answers
+ 2
Ibiyemi Daniel
See this tutorial and do not share others code with question
https://codedec.com/tutorials/how-to-upload-image-and-perform-validation-in-javascript/
+ 1
Apart from JavaScript;
You can simply check the dimension of the image by clicking on the image and viewing the file properties.
With HTML you may set any size you wish. With the style property.
<img src="image.jpg" alt="an image" style="width:500px; height:600px;">
It is recommended to style with CSS. To keep HTML code clean.
img {
height: 600px;
width: 400px;
}
<img src="image.jpg" alt="an image">