+ 1

I used img tag to put image on my website.but it didn't worked.please help me

I used src and alt attribute

17th Mar 2021, 3:57 AM
shirja Beevi
shirja Beevi - avatar
10 Answers
+ 4
shirja Beevi You can't use your phone's image file on the online website. You have to upload your image somewhere on the internet like DropBox. You can upload there and get a link then paste in your code. https://code.sololearn.com/WT3661NHpV3B/?ref=app https://code.sololearn.com/WW6t4B73kJVz/?ref=app https://www.sololearn.com/discuss/1054246/?ref=app
17th Mar 2021, 4:15 AM
A͢J
A͢J - avatar
+ 3
<img src="pic_trulli.jpg" alt="Italian Trulli"> First check the syntex once again and try
17th Mar 2021, 4:06 AM
Rohit Maurya
Rohit Maurya - avatar
+ 2
shirja Beevi Because you are working in your local machine so you can access anything but your local machine is not connected to online website (means your local machine is not a server). So you can't access your local file on online website.
17th Mar 2021, 10:18 AM
A͢J
A͢J - avatar
+ 1
And we are not use <img/> tag in the img tag have no closing tag
17th Mar 2021, 4:08 AM
Rohit Maurya
Rohit Maurya - avatar
+ 1
Send me your aal text code
17th Mar 2021, 4:10 AM
Rohit Maurya
Rohit Maurya - avatar
+ 1
we won‘t be able to help you like this. share your code.
17th Mar 2021, 7:40 AM
John Doe
+ 1
Thanks it only worked on laptop
17th Mar 2021, 9:43 AM
shirja Beevi
shirja Beevi - avatar
0
I know it is a self closing tag
17th Mar 2021, 4:08 AM
shirja Beevi
shirja Beevi - avatar
0
I tried didn't worked
17th Mar 2021, 4:08 AM
shirja Beevi
shirja Beevi - avatar
0
Try it with picture tag.
17th Mar 2021, 12:22 PM
shirja Beevi
shirja Beevi - avatar