+ 3
Hello guys, my linked image is not showing and robot.src is showing an error
Trying to practice Introduction to Javascript which is in the HTML course but I'm facing some challenges. the image link which I copied from web is showing as broken- does sololearn editor not accept images? is there a way I can upload images from my computer into the editor? Also why did the robot.src in the onclick attribute not work for me? see my code link below: https://www.sololearn.com/en/compiler-playground/W9JE5K5h5QCe
9 Answers
+ 1
Well you can get a free stock image and use the link or convert your image to and svg or self host your image on your google drive in the share folder copy the link and add to your project …
+ 2
"""
is there a way I can upload images from my computer into the editor?
"""
this /similar question was asked a lot of times. feel free to use the search form.
you will find the answer: GitHub/GitLab, cloud drive (but the picture must be public)
+ 2
Maybe you should put the picture in the same folder as the saved code.
+ 1
you didn't link the image, just a page....
here is a link to that bird:
https://images.unsplash.com/photo-1480044965905-02098d419e96?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D
next time click on the image and: open image in new tab/window; or just copy image location....
or if you can't click, then tap it, but the process is the same
+ 1
Mihaly Nyilas thanks for the answers👍
+ 1
your welcome!
happy learning and happy coding :-)
0
Share image link here
0
about the onclick:
ReferenceError: robot is not defined
at HTMLButtonElement.onclick
but you can read the error. errors/exceptions are really helpful