+ 7
Help guys please... I'am struggling with the <img/> tag...i can't seem to have a clear idea on putting a pic on my code
5 odpowiedzi
+ 10
Here's an example that may help you..
<img src="test.png" height ="100" width="100" alt="missing"/>
here src is the link of your image. You need to use a correct link.
alt is the text showed if the image can't be displayed.
+ 4
Thanks @MD and to you too Abdul...
@Abdul...are using HTML bro...but dankie..
+ 1
<img src="test.png" height ="100px" width="100px" alt="missing" />
you can use px or % in size of your image.
and if the image is in different folder from your index.html(your html document) you have to specify the location. check this --> https://www.w3schools.com/hTml/html_filepaths.asp
0
The above code is alright but if you are using php you may use isset function to check if the image is selected. name field in image tag is img.
if(isset($_POST['img'])
{
//steps to be taken after the image is set.
}