Hi i tried this but it did not work can anyone explain it why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi i tried this but it did not work can anyone explain it why?

html> <head> <title>first page</title> </head> <body> <ol> <li>Red</li> <li>Blue</li> <li>Green</li> <img scr="cdn2.iconfinder.com/data/icons/avatars-99/62/avator-370-456322-512.png" height="10px" with="10px" /> </ol> </body> </html> The above code didn't work properly it didn't show the picture

1st Mar 2022, 3:35 AM
Mohamed Raaid
Mohamed Raaid - avatar
11 Answers
+ 5
There are several mistake in this program
1st Mar 2022, 1:48 PM
Vaibhav
Vaibhav - avatar
+ 2
HTTP ERROR 404 for that image link 🙄 edit]: Mohamed Raaid did you tried clicking the link?? it's not opening edit2]: Mohamed Raaid, it's working, there was a typo in src: you wrote scr... https://code.sololearn.com/WM7Ljv3wRkNN/?ref=app
1st Mar 2022, 3:41 AM
NEZ
NEZ - avatar
+ 2
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <ol> <li>Red</li> <li>Blue</li> <li>Green</li> <img src="https://cdn2.iconfinder.com/data/icons/avatars-99/62/avatar-370-456322-512.png" height="50px" width="50px" /> </ol> </body> </html> A lots of mistakes in your program. I don't know how you made it. It's just a mistake or you wanna try to kill time of others.
3rd Mar 2022, 2:43 AM
Mohd Akram
Mohd Akram - avatar
+ 1
Mohamed Raaid You will need to put the source of your image in a place you control, your dropbox for example. Use the Q&A search bar to look for "How to upload an image in HTML" there is hundreds of queries that show how to do this on Sololearn
1st Mar 2022, 5:01 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
I see a mistake, you writed <img scr , change to <img src
2nd Mar 2022, 2:08 PM
Denis Monçôres
Denis Monçôres - avatar
+ 1
Add https:// to the image source i.e src="https://cdn2...........png"
2nd Mar 2022, 3:26 PM
T.Coded
T.Coded - avatar
0
Hi i could not understand it can you explain it
1st Mar 2022, 3:41 AM
Mohamed Raaid
Mohamed Raaid - avatar
0
Ok i corrected the link too but it does not work The correct link is https://cdn2.iconfinder.com/data/icons/avatars-99/62/avatar-370-456322-512.png but it does not work I copied from the Google
1st Mar 2022, 3:48 AM
Mohamed Raaid
Mohamed Raaid - avatar
0
add img to li
2nd Mar 2022, 9:33 AM
Happy Coder
Happy Coder - avatar
0
<!DOCTYPE html> <html> <head> <title>first page</title> </head> <body> <ol> <li>Red</li> <li>Blue</li> <li>Green</li> <li><img src="https://cdn2.iconfinder.com/data/icons/avatars-99/62/avatar-370-456322-512.png" height="10px" width="10px" alt="image"/></li> </ol> </body> </html> I'm not quite sure of what's wrong with the image link, it won't work for me either. I think that it's just my internet connection at the moment though, so it might actually be working and I just can't see it. However what's wrong with what you typed is that the top HTML tag doesn't have the "<", src is spelled incorrectly, and you didn't wrap the image tag in the list item tag. Width was also spelled incorrectly. I hope that this helps.
3rd Mar 2022, 1:46 PM
DuckyDucky
DuckyDucky - avatar