HTML image | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

HTML image

Hello, I have HTML code written in notepad. There’s link on image: <img src: “url of image in same folder as html txt file” >. When I open html file of the code in Edge or Firefox, it doesn’t show the image. I think it has something to do with the security of windows 10 but I couldn’t find solution. I’ve unblocked the picture, tried to google solution, but nothing helped me. Any advice, please?

19th Nov 2019, 7:02 AM
Jara
2 ответов
+ 6
See, There is not problem of browser or code. In your code <img src: “url of image in same folder as html txt file” > You have to use "=" not the ":" after src to specify its value. like this <img src=“url of image in same folder as html txt file” >
19th Nov 2019, 7:13 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
OK, here is the code: ---------------------------------------- <!DOCTYPE HTML> <html> <head> <title>Head First Lounge</title> </head> <body> <h1>Welcome to the Head First Lounge</h1> <img src=”drinks.gif”> <p> Join us any evening for refreshing elixirs, conversation and maybe a game or two of <em>Dance Dance Revolution</em>. Wireless access is always provided; BYOWS (Bring your own web server). </p> <h2>Directions</h2> <p> You’ll find us right in the center of downtown Webville. Come join us! </p> </body> </html> ---------------------------------------------- The browser still does not show the image. It says: "Some of the pictures were blocked to avoid sender of this computer identify computer."
19th Nov 2019, 4:10 PM
Jara