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

Images not displaying but I can't tell what is wrong with my code

Hi,

I have been following along with the 'How to make a website course' and have changed the photos. I have only got a index.html file no other script.

<!DOCKTYPE html>

<html>
  <head>
  <meta charset="utf-8">
    <title> horse | horse phtogragher </title>
    <link href="style.css" rel="stylesheet">
  </head>
  <body>
  <header>
   <a href="index.html">
    <h1>Imogen Herbert</h1>
 <h2>horse photogragher</h2>
  </a>
   <nav>
    <ul>
     <li>portfolio</li>
      <li>about</li>
      <li>contact</li>
     </ul>
    </nav>
    </header>

    <section>
    <p>photos will go here</p>
    <img scr="horse3.jpg" alt"horse">
    <img scr="horse4.jpg" alt"horse">
    <img scr="horseshoe.jpg" alt"horse">

    </section>
    <footer>
    <p>&copy; 2014 Imogen Herbert</p>
    </footer>
    </body>

  </html>

My Workspace is http://teamtreehouse.com/workspaces/1924622#

2 Answers

Change 'scr' to 'src' in the img tags and you should be good to go!

Also put an equals sign after your alt tags, like this:

alt="horse"

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Greetings and welcome to Treehouse!

First thing I noticed was that in your image tags for your various horse images, you're scr should be src and you don't have equal signs for your alt properties. It should look something like:

<img src="somehorse.jpg" alt="Horse #1">

Try those changes out and post back if you still have issues.

Happy coding,

Ken