Adding a local jpg | Sololearn: Learn to code for FREE!


Adding a local jpg

In the HTML fundamentals course, I am at the point where they explain how to add a local image to a page. I've been trying every lesson so far in Notepad++ files and getting them to work fine locally, but the image lesson has me stuck. As per the lesson I have, in a local folder where the html document is also located, a simple jpg called html.jpg that I referenced. My code is as follows: <html> <head> <title> Image test</title> </head> <body> <img src="HTML.jpg alt="" /> </body> </html> Could someone tell me where I went wrong?

8/30/2018 3:03:14 PM

Rik van Straaten

3 Answers

New Answer


at your <img />, you forgot closing " after HTML.jpg :)


Fabulous, thank you very much!


it's a pleasure :)