Hi all,
I’m trying to insert img but everything I’ve tried isn’t working.
Img file is in same folder as html…
help!
<head>
<title>My First Website</title>
<link rel="stylesheet" type="text/css" href="Stylesheet.css" />
</head>
<body>
<section></section>
<div class="navigation">
<ul>
<li>Home</li>
<li>About</li>
<li>Map</li>
<li>Contact</li>
</ul>
</div>
<!--- <div class="hpmainbanner"> -->
<img src="female_workspace.jpg" alt=female_workspace_banner />
</div>
</body>
</html>

Hello~!
Try using a relative link, like src=./filename.jpg
.
The ./
tells the code to look in the current directory. Right now it is looking in the root drive directory.
Hi @LeahCohen,
I’ve seen this part of the code, the one you try to add image to:
<!--- <div class="hpmainbanner"> -->
<img src="female_workspace.jpg" alt=female_workspace_banner />
</div>
It doesn’t have the opening <div>
tag. I mean you close the div after image, but there is no opening tag (you’ve commented it).
Did it change anything?
No… 
But thank you so much, it was a problem that the img wasn’t in the correct folder i thought it was… thank god for zoom and screen sharing, because I’ve been on this issue for the better part of an hour!!
you’re right.
it’s exactly what i did!
thank you so much!
1 Like