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

Code challenge gives error (workspace does not): Add the profile picture "img/gratt.png" inside the section element.

ERROR: Add the profile picture "img/gratt.png" inside the section element. Then, write a description in the alternate attribute and add the class "profile-photo" to the image.

<section>
        <img src="img/gratt.png" alt="Photograph of Mark Anderson" class="profile-photo">
        <h3>About</h3>
             <p>asd sd d asdfadsf ad ads kklw wer werew adsf.  asdfdf e sdf werewrew asdfp. k werwe lk adff llwerkk sdfr. adsf fewel lkwe rtwerl weriow sdf.</p> 
            <p> You can reach me on FB at <a href="https://www.facebook.com/profile.php?id=1190711402"><img src="/img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a></p>
    </section>

Workspace displays it correctly!! Bug or is my code bad? This is in basic HTML and the "About.htm" page...

oh... and I can't advance to the next section!!

2 Answers

It looks like you have added your own stuff to the code. Code challenges are spesific and usually only pass if you make ONLY the desired changes.

The code challenge wasn't linked but they often look for the specific wording and resources in the output that it asks for. If it asks for a specific image file or alt text, etc. you should use that instead of your own.