Search code examples
htmlnotepad

html img src not working


i'm trying to create a simple web page using notepad. I want to add a image. but image is not loading.I tried different browsers,but no luck. please help. image size is 26kb.

here is the code,

<html>
<head>
<title>GLOBAL WARMING</title>
</head
<body>
<img src="images.jpg"/img>
</body>
</html>

Solution

  • You have a code error on line 4 where head is closed. You missed the ">" sign. Plus, the way you are tagging the image in html is incorrect. It should be the following:

    <img src = "imagePath/ImageName.extention" />