0

Why i cant insert img on my code?

I cant start img on my code . how to insert my image on my code. https://code.sololearn.com/WWv9Isf8q9fZ/?ref=app

21st Jan 2018, 12:28 PM
Bishal kc
Bishal kc - avatar
11 Réponses
+ 12
Your img tag is not properly closed, and the image link doesn't seem to be complete. I.e. chatnpl.png does not refer to a local file on the server wherein html file is located. You have to link the file with the complete address, e.g. <img src="http://www.example.com/chatnpl.png"/>
21st Jan 2018, 12:33 PM
Hatsy Rei
Hatsy Rei - avatar
+ 9
@Christopher Charillo Thanks for pointing that out.
21st Jan 2018, 11:56 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Hatsy is right, but you can also add / before > to indicate that the img tag doesn't need </img> to follow.
21st Jan 2018, 2:44 PM
Christopher Carillo
Christopher Carillo - avatar
+ 2
@Hatsy Np
22nd Jan 2018, 12:01 AM
Christopher Carillo
Christopher Carillo - avatar
+ 1
you need to completely specify the web address where the image is so that you can have your image displayed
21st Jan 2018, 1:23 PM
Aayush Acharya
+ 1
everyone here is correct. my recommendation is that you upload the image online via sending it to one of your friends on messenger (that's what I generally do), google drive's upload image option, etc. this will allow people to see the image from outside a local viewpoint (local viewpoint being when you open the file)
21st Jan 2018, 2:37 PM
Christopher Carillo
Christopher Carillo - avatar
+ 1
Here are two links I made for you that might get you a good head start. One of them shows how your code originally looked like (I know kinda redundant). However, I thought that after you look at the code in the second link you might want to make some changes on the one you made yourself. Link 1: https://code.sololearn.com/WwAUTU8TiQ9s/#html Link 2: https://code.sololearn.com/WbVFu458oRvG/#html
24th Jan 2018, 6:51 AM
Christopher Carillo
Christopher Carillo - avatar
0
how can i complete my img link
21st Jan 2018, 12:55 PM
Bishal kc
Bishal kc - avatar
0
by performing bro!!
24th Jan 2018, 3:06 AM
Abinash Chaudhary
Abinash Chaudhary - avatar
0
thanks christopher charillo
24th Jan 2018, 2:51 PM
Bishal kc
Bishal kc - avatar
0
@Bishal kc Np
24th Jan 2018, 6:58 PM
Christopher Carillo
Christopher Carillo - avatar