+ 4

Can any one tell me if I can insert image in html using sololearn?? Or do I need to use pc

I can't seem to insert an image in html using this tag <img src ="image. jpg"/>

14th Feb 2018, 5:19 AM
Sachin Kumar
Sachin Kumar - avatar
17 Antworten
+ 34
try this ☺☺ it works. <html> <head> <title>magiboy</title> </head> <body> <img src="https://dl.dropbox.com/s/uck8b5a2p0o6zrh/IMG-20180123-WA0012.jpg?dl=0" alt="my pic"/> </body> </html> https://code.sololearn.com/W6vg583SZ8Jj/?ref=app
14th Feb 2018, 7:26 AM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 29
 To make our url redirect us directly to the file we have two options:The first is to change the www. bydl., in such a way that our url is of the following way:  https://dl.dropbox.com/s/q1mdrm8hno97cr3/svg-icons.css The second way is to modify the query string of our file, for that we only have to change ?dl=0 to ?raw=1 in our url. https://www.dropbox.com/s/q1mdrm8hno97cr3/svg-icons.css?raw=1 [contents from mickel sanchez's code.sorry i am little lazy person to type.] https://code.sololearn.com/WW6t4B73kJVz/?ref=app
14th Feb 2018, 7:39 AM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 28
sure☺👍👍 welcome Ogbuagu Beloved Francis
14th Feb 2018, 7:46 AM
Elizabeth🌸
Elizabeth🌸 - avatar
14th Feb 2018, 5:51 AM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 27
copy to clipboard then paste here☺
14th Feb 2018, 7:13 AM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 4
my codes that has images, and I don't have a pc, not sure I've seen one in the last 5 months, just copy your image url, and past it in the src value but if your question is from an image in a folder in your file manager, I'm also looking for the answer to that question https://code.sololearn.com/W1gbx7haZxNl/?ref=app https://code.sololearn.com/WAC1D2PddJLN/?ref=app
14th Feb 2018, 7:25 AM
Ogbuagu Beloved Francis
Ogbuagu Beloved Francis - avatar
+ 3
thanks @ Elizabeth
14th Feb 2018, 7:59 AM
Ogbuagu Beloved Francis
Ogbuagu Beloved Francis - avatar
+ 2
you can't use an image from within sololearn. if you use it like <img src="image.jpg"> then this means your image - in order to be visible on the page- must be in the same folder as your html file. as you cant upload your image to sololearn this won't help. you can upload your image to a file server and use the link for it, or you can use the link for an already existing image on the web (open the image in a browser window and then copy and paste the address from the address bar).
14th Feb 2018, 7:00 AM
storm
storm - avatar
+ 2
Ok I m not used to this app, so I don't know how to share my code.... Can you help me out
14th Feb 2018, 7:09 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
<html> <head> <title>magiboy</title> </head> <body> <img src="https://www.dropbox.com/s/uck8b5a2p0o6zrh/IMG-20180123-WA0012.jpg?dl=0" alt="my pic"/> </body> </html>
14th Feb 2018, 7:18 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
Ok I m gonna try this, if I encounter any problem I hope you will help me out again..
14th Feb 2018, 7:45 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
Ok I m gonna try this, if I encounter any problem I hope you will help me out again..
14th Feb 2018, 7:45 AM
Sachin Kumar
Sachin Kumar - avatar
+ 1
you can use url or the folder contains the photo. myfolder/image.jpg etc.
14th Feb 2018, 6:02 AM
Emin Gunduz
Emin Gunduz - avatar
+ 1
Yeah I tried it. But code playground isn't showing me any image
14th Feb 2018, 7:04 AM
Sachin Kumar
Sachin Kumar - avatar
+ 1
share your code and lets help
14th Feb 2018, 7:07 AM
Emin Gunduz
Emin Gunduz - avatar
+ 1
Ok I don't know how I did it... But tell me now why my code isn't working??
14th Feb 2018, 7:19 AM
Sachin Kumar
Sachin Kumar - avatar
+ 1
Ok what was wrong in my code... 😣😣
14th Feb 2018, 7:34 AM
Sachin Kumar
Sachin Kumar - avatar