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
Lucas Fileti
2,951 PointsCan I use just header inside of section tag ? <section> <header> <h1></h1> </header> </section>
Is it semantic ?
6 Answers
Abdullahi Abdinasir Ali
9,520 PointsYea u can use header element because it is inside the element.so u can use it in like title of page . As long as it h1 inside the body tags no problem. Hope that helps
Lucas Fileti
2,951 PointsLook at this one, does it right ? <section> <header> <h1>Como ganhar dinheiro</h1> <p>Ganhando dinheiro difícil na internet ?</p> <p>escrito por : Lucas Fileti</p> <p>Puclicado em : 12/11/2017</p>
<ul>
<li><a href="#">Facebook</a></li><!-- mídias sociais desse autor -->
<li><a href="#">Twitter</a></li>
<li><a href="#">Youtube</a></li>
<li><a href="#">Linkedin</a></li>
</ul>
<!-- Estrelas para votação -->
</header>
</section>
Abdullahi Abdinasir Ali
9,520 PointsU should not wrap the content with <section> bcz the header is introductory part and everything part introduction should be inside the header tags . The rest there is no problem . It is good but consider that section tags should be the header tags . Hope that helps
Lucas Fileti
2,951 PointsThanks helped a lot ! just one more question, If I want my h1 diffrent from others and I don`t wanna use it in the header, what type tag should I use ?
Abdullahi Abdinasir Ali
9,520 PointsThere six heading elements There is h1, h2,h3, h4, h5 ,h6 U can use which ever suit best . Hope that helps
Abdullahi Abdinasir Ali
9,520 PointsThanks for quiz u can ask any I appreciate it.But u want to use h1 tag but different from others in the page u can use span tag then style it in the CSS . Hope at least helped some way
Lucas Fileti
2,951 PointsLucas Fileti
2,951 PointsSo h1 can stay where I put there ?