html-img tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

html-img tag

I tried to use the image tag by specifying the right path but still not getting the expected result. Can someone tell me the reason and solution for this? thank you!!

30th Sep 2018, 12:57 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar
11 Answers
+ 5
Is your code in the playground and the image in your device? If your code is in the playground your image must be online.
30th Sep 2018, 1:02 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 7
Ulisses Cruz Do u mean i should copy the link of the image from where i downloaded it?
30th Sep 2018, 1:21 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar
+ 7
Ulisses Cruz Still no good mate
30th Sep 2018, 1:35 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar
+ 7
The car is now running in tip top condition...wrong fuel was being provided..sorry for the trouble and thanks for the help
30th Sep 2018, 1:45 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar
+ 7
btw can u tell me what attribute can be used in html so that when we click on a button (egs: submit).. a msg pops up saying something...
30th Sep 2018, 2:23 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar
+ 1
provide your code
30th Sep 2018, 12:59 PM
Faisal Rahman
Faisal Rahman - avatar
30th Sep 2018, 1:06 PM
Janningā­
Janningā­ - avatar
+ 1
Good to hear. šŸ™‚šŸ‘
30th Sep 2018, 2:12 PM
Janningā­
Janningā­ - avatar
0
Yes. If the image is already online, just copy it's url.
30th Sep 2018, 1:24 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
Provide your code then. Can't fix your car if you don't let the mechanic near the car.
30th Sep 2018, 1:38 PM
Janningā­
Janningā­ - avatar
0
I don't believe such an attribute exists. The alert() method in JavaScript ( https://www.w3schools.com/jsref/met_win_alert.asp ) is fairly low overhead, but you can't format it, so most developers opt for a modal ( https://www.w3schools.com/howto/howto_css_modals.asp ). One thing I've wanted to play with (on my bucket list) is <dialog> and <template> to see what level of support browsers have on them these days, but this would be non-standard.
30th Sep 2018, 8:55 PM
Janningā­
Janningā­ - avatar