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 trial
Sarah Pridmore
Courses Plus Student 1,463 PointsCurrently at beginner level, can't seem to get an image to appear on a webpage, where am i going wrong?! Thanks
Attempt 1 -
(''') <img src="Sarah.jpg" alt="Sarah"> (''')
Attempt 2 - (''') <h1 class="logo"><img scr="img/mash-logo.svg" /></h1> (''')
All the file names are correct and the file paths i can't see where i'm going wrong?
Are the code strings appearing it doesn't look like they are to me?
Sarah Pridmore
Courses Plus Student 1,463 PointsAttempt 1 - <img src="Sarah.jpg" alt="Sarah">
Attempt 2 - <h1 class="logo"><img scr="img/mash-logo.svg" /></h1>
Keli'i Martin
8,227 PointsStill doesn't seem to be working...
2 Answers
joppegeluykens
4,393 PointsHi Sarah Pridmore, have a look at the Mozilla Developer Network for the img element. Scroll down for the examples.
Hope that helps!
Sarah Pridmore
Courses Plus Student 1,463 PointsI don't know why it's not showing up?!
Keli'i Martin
8,227 PointsI think it's because the markup doesn't like the angle brackets when they're on a single line. Try using the code markup for multiple lines, like this:
```html
<p>This is code!</p>
```
Keli'i Martin
8,227 PointsKeli'i Martin
8,227 PointsI don't see any code strings in your question... Are you using the Markdown tags for code? Basically, you would wrap your code strings between two sets of three backticks...
"Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting."