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

HTML

Currently 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?

I 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."

Attempt 1 - <img src="Sarah.jpg" alt="Sarah">

Attempt 2 - <h1 class="logo"><img scr="img/mash-logo.svg" /></h1>

Still doesn't seem to be working...

2 Answers

Hi Sarah Pridmore, have a look at the Mozilla Developer Network for the img element. Scroll down for the examples.

Hope that helps!

I don't know why it's not showing up?!

I 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>
      ```