+ 1

Why this is your error? When i use img in html

i use program imur for lonk img can you explain what is wrong this link for use img in sololearn but why it is wrong: https://code.sololearn.com/WqUmgAiiEt5B/?ref=app

27th Jul 2018, 2:55 PM
Sarmad Saad
Sarmad Saad - avatar
7 Respuestas
+ 1
https://code.sololearn.com/WGhsBpLOqcrF/?ref=app
27th Jul 2018, 3:10 PM
Calviղ
Calviղ - avatar
+ 1
Thank bro Calviղ But can you explain what it is wrong for code me
27th Jul 2018, 3:18 PM
Sarmad Saad
Sarmad Saad - avatar
+ 1
Hello sarmad! If you want I can explain what happened: 1) the link in the src attribute was not in quotes, and 2) the link did not direct to an image, but to the web page. The links that store images end with the extension, for example "www.example.com/abcdef.jpg" (the link is false). if you do not understand something, you tell me
27th Jul 2018, 3:46 PM
Facu
Facu - avatar
+ 1
You have 2 errors: The first error is the the link, https://imgur.com/gallery/jR01T you put on img is not the image link, it's imgur.com webpage link. Website link is html file, you cannot take it as image file. Image link must be an url link with image file name. eg. https://www.xxx.com/imgfile.jpg Image files could be file names with file extension jpg, png, gif, svg, and etc. To get the image file from imgur.com link, you need to right click the image and copy the image file link to your clipboard and paste it into your codes. The second error is the image link in the src attribute of img tag must be enclosed with double quotes characters ", image link is a string, not a variable.
27th Jul 2018, 3:49 PM
Calviղ
Calviղ - avatar
+ 1
Thank Calviղ You are where you got the image link from?
27th Jul 2018, 3:54 PM
Sarmad Saad
Sarmad Saad - avatar
+ 1
Right-click on the image and choose Copy Image Address.
27th Jul 2018, 4:13 PM
Calviղ
Calviղ - avatar
+ 1
Thank
28th Jul 2018, 12:38 AM
Sarmad Saad
Sarmad Saad - avatar