Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Adding Pages to a Website Make an About Page

Cheryl Oliver
Cheryl Oliver
21,676 Points

Not sure whats wrong


My code looks right to me, can someone help show me what I have done wrong?

2 Answers

Steven Parker
Steven Parker
220,378 Points

You forgot to show your code, or mention which of the five challenge tasks you were having trouble with! But here's a few general hints:

  • You're adding a photo inside the <section> tags. For a photo, you'll need to add an <img> tag.
  • You need to indentify where the picture is located using the src attribute.
  • You need to describe the photo in the alt attribute.
  • You also need to add the attribute class="profile-photo".
  • Paragraph text is added between <p> and </p> tags.
  • Because of the class it was given, you can select the image in the CSS using .profile-photo
  • The keyword for centering margins is auto
  • You can specify all four margins at once using margin: [top] [right] [bottom] [left] (think of a clock)
  • The CSS keyword for maximum width is max-width

If these hints aren't what you need, try posting your code and naming the specific task you got stuck on.

Siddek Ali
Siddek Ali
2,407 Points

paste your code here. then we can view it here.