Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
I don't understand what's the error
I followed the style, and it said that i'm wrong.
<!doctype html> </html>
Ryan DudleyTreehouse Project Reviewer
Hey Francis, hope you are having a good weekend thus far!
This should be a simple fix, as you are essentially just missing an opening <html> tag. I suspect you might be confusing the <!DOCTYPE html> as the opening tag for the <html> tag. To be a bit more clear on what is happening here, the doctype declaration is essentially not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. Whereas the html tag represents the root of an HTML document and is the container for all other html elements (except for the aforementioned doctype.)
So to make this test pass, you need to add an opening <html> tag after your doctype declaration. So all in all you should have something like this:
<!DOCTYPE html> <!-- This tells the browser this is an HTML5 document --> <html> <!-- This is the opening tag for our root html element, all other elements are contained within this! --> </html> <!-- This is the closing tag for our root html element. -->
I hope you found this helpful, and good luck!