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

Hi,

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

2 Answers

Steven Parker
Steven Parker
229,732 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.