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
11 Réponses
+ 5
There are several mistake in this program
+ 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
+ 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.
+ 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
+ 1
I see a mistake, you writed <img scr , change to <img src
+ 1
Add https:// to the image source i.e src="https://cdn2...........png"
0
Hi i could not understand it can you explain it
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
0
add img to li
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.