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

Can I use just header inside of section tag ? <section> <header> <h1></h1> </header> </section>

Is it semantic ?

6 Answers

Yea 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

So h1 can stay where I put there ?

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

U 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

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

There six heading elements There is h1, h2,h3, h4, h5 ,h6 U can use which ever suit best . Hope that helps

Thanks 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