Adding an image from url-html

I am having problems displaying an image from the web on my html page.

Line:

<img src="http://www.somepic..." alt="pic" /> 

What's bad about it? Does this only work with images that are on my disk?

thanks

+4
source share
1 answer

Based on the URL you provided in the comments above, I assume that you are not actually linking to an image, you like a webpage but accept it as an image.

For example, the address you provided:

http: //www.google http://animal.discovery.com/mammals/cheetah/pictures/cheetah-picture.jpg&w=625&h=450&ei=Y-grT8_ZNYnntQb4kID0DA&zoom=1&iact=hc&vpx=693&vpy=191&dur=850&hovh=190&hovw=265&tx=155&ty=84&sig=110318714666115395229&page= 1 & tbnh = 141 & tbnw = 183 & start = 0 & ndsp = 19 & ved = 1t: 429, r: 1, s: 0 & biw = 1280 & bih = 656

Whether the URL of the webpage is an image, not the image itself.

Make sure you are snapping to the actual image itself:

 <img src="http://animal.discovery.com/mammals/cheetah/pictures/cheetah-picture.jpg" alt="Cheetah!" /> 
+9
source

Source: https://habr.com/ru/post/1394622/


All Articles