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

whats wrong with my code . My page only states my name.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Imran Khalid | Designer</title> </head> <body> <header> <h1>Imran khalid</h1> <h2>Designer</h2> </header> <section> <p>Gallery will go here.</p> </section> <footer> <p>© 2016 Imran Khalid.</p> </footer> </body> </html>

Remove section, use body instead. move h1, h2 into the body as well <header> </header> <body> <h1> </h1> <h2></h2> <p></P> </body>

2 Answers

There is quite a bit of important markup missing from your code.

<!DOCTYPE html> <!-- Missing (Document Type Decleration -->
<html> <!-- Missing (html opening tag) -->
<head> <!-- Missing (head opening tag) -->
    <meta charset="utf-8">
    <title>Imran Khalid | Designer</title>
</head> <!-- Missing (head closing tag) -->
<body> <!-- Missing (body opening tag) -->
    <header> 
        <h1>Imran khalid</h1>
        <h2>Designer</h2>
    </header>
    <main> <!-- Missing (This isn't required but if you are trying to have semantic structure is advisable) -->
        <section>
            <p>Gallery will go here.</p> <!-- Don't forget to include a header tag element inside your section for semantic structure -->
        </section>
    </main> <!-- Missing (This isn't required but if you are trying to have semantic structure is advisable) -->
    <footer>
        <p>&copy; 2016 Imran Khalid.</p>
    </footer>
</body> <!-- Missing (body closing tag) -->
</html> <!-- Missing (html closing tag) -->

You appear to be missing a few tags, namely the doctype, html, head, and body tags.

<!DOCTYPE html> <html> <head> meta…. </head>

<body>
    Header, section…
</body>

</html>