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

Omar Bahaa
PLUS
Omar Bahaa
Courses Plus Student 1,801 Points

The section for the schedule, i have used h3 for the title, header for then footer for the time, is it considered wrong?

In Practice Structuring and Grouping Content - Introducing the Practice, I can see that we have used <h3> for titles, <p> for names and <span> for time, my version was <h3> for titles, <header> for names and <footer> for time, is it the right way or not? Even though i got the same result.

2 Answers

Steven Parker
Steven Parker
231,172 Points

Offhand, one difference would be that a <p> element has margins by default, but a <header> is just a container. This may be difficult to see depending on the content.

Also, while not an error, it's very unconventional to have more than one header in a section.

Omar Bahaa
PLUS
Omar Bahaa
Courses Plus Student 1,801 Points

Thank you for simplifying it for me, so using the header is when i am intending to edit what inside it with a CSS and it acts like a container for this. Perfect (y)