Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMary-ashley Holtz
2,398 PointsFirst project- personal image does not exist
I submitted my first project for my tech degree and I received an error stating that my image mash.png didn't exist, but I see it saved in my site folders under images. What seems to be the issue?
Mary-ashley Holtz
2,398 PointsHere's a snippet of my code:
<header>
<img src="images/mash1.jpg" alt="Mash Profile" class="profile-image">
<h1 class="tag name">Hello, Iām Mash.</h1>
<p class="tag location">My home has covered all corners of the US!.</p>
</header>
I do have src. I changed the image from mash.png to mash1.jpg to see if that would help.
My folder structure is as such: main folder named: first site images folder github.svg linkedin.svg map 2.jpg mash.png mash1.jpg twitter.svg
about.html index.html style.css
I'd post a screenshot but don't know how.
1 Answer
Bogdan Cabaj
16,349 PointsHi there again. Snippet looks good and I even tried locally on my machine and it works too. One option is to use web developer tools if you are using chrome browser and hover over src attribute and it will show you exact path to the image. Maybe this way you can see if the path is correct.
Sorry i could not be more help.
Mary-ashley Holtz
2,398 PointsI just checked on chrome with the live webpage and my image shows up. Also when I inspect the page, the path that shows is my correct path. I am confused as to what correction I need to apply.
Bogdan Cabaj
16,349 PointsBogdan Cabaj
16,349 PointsPlease post a code snippet of your HTML and exact folder structure of your site folder. Based on your description it seems like you need src="images/mash.png"