html-img tag | Sololearn: Learn to code for FREE!

+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!!

9/30/2018 12:57:53 PM

Nimit Sandeep Jhunjhunwala

11 Answers

New Answer

+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.

+7

Ulisses Cruz Do u mean i should copy the link of the image from where i downloaded it?

+7

Ulisses Cruz Still no good mate

+7

The car is now running in tip top condition...wrong fuel was being provided..sorry for the trouble and thanks for the help

+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...

+1

provide your code

+1

For what it's worth: https://code.sololearn.com/W1HE74c6JmEX/?ref=app

+1

Good to hear. 🙂👍

0

Yes. If the image is already online, just copy it's url.

0

Provide your code then. Can't fix your car if you don't let the mechanic near the car.

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.