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 trialdisheng wang
5,422 PointsSection
Why do we need two section in contact.html? i dont really understand it. In the video he said two column, but in the result it actullay show in two row. lol
2 Answers
Mark Tripney
6,211 PointsHi Disheng,
My understanding is that <section>
is used to define a section of your page which can't be given a more appropriate semantic element.
MDN gives the example of <nav>
, which, of course, should contain navigation-related content. On the other hand, a list of search results, for example, has no corresponding equivalent. So, <section>
might be used. It differs from <div>
in that it should contain actual content, and not just a distinctly-styled aspect of the page (like a 'wrapper').
Rouillie Wilkerson
10,419 PointsI see your point, but we've not finished yet. Patience! :)