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 HTML Basics Structuring Your Content Sectioning Content with <article>, <nav> and <aside>

Bartlomiej Zabielski
PLUS
Bartlomiej Zabielski
Courses Plus Student 10,363 Points

does this <p> belong in the header?

I have read the mdn docs page but its confusing. Can i use this <p> inside the <header>. I am following Guil's html beginner class.

     <header>
        <h1>Experience VR</h1>
       <p>A simple blog about vertual reality experiences.</p> <!-- not this one the lower one-->

       <nav>
         <ul>
           <li><a href="#">Home</a></li>
           <li><a href="#">About</a></li>
           <li><a href="#">Articles</a></li>
           <li><a href="#">Contact</a></li>
         </ul>
        </nav>
<!-- does this p need to be outside the header? -->
            <p>Virtual Reality is becoming well known as a form of entertainment, but it's also finding its way into fields like education and industrial</p>
       <a href="https://teamtreehouse.com/vr" target="_blank">Start your VR Journey</a>
   </header>

2 Answers

It is alright to have it in there yes. The header tag is a way of dividing your code in a more logical way then otherwise just wrapping everything in divs. You can actually have multiple header tags in the same html document.