+ 1

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?

30th Aug 2018, 3:03 PM
Rik van Straaten
3 Answers
+ 1
at your <img />, you forgot closing " after HTML.jpg :)
30th Aug 2018, 3:05 PM
Sam Pache
Sam Pache - avatar
+ 3
Fabulous, thank you very much!
30th Aug 2018, 3:08 PM
Rik van Straaten
0
it's a pleasure :)
30th Aug 2018, 3:10 PM
Sam Pache
Sam Pache - avatar