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 How to Make a Website HTML First Build Structure

HTML 5.0 elements VS XHTML?

Okay, starting to get it after reviewing the video.

If I add any tags outside the <html> tags then that'll fall under the usual XHTML (or HTML without the 5.0 elements), right? Which means I won't be able to use the special tech features of the HTML 5.0 language,

Am I right lol?

1 Answer

Steven Parker
Steven Parker
231,236 Points

Normally only the DOCTYPE will be outside of the <html> tags.

Whether your document is HTML5 or XHTML should be reflected in the DOCTYPE. Also, if the document is XHTML, the <html> tag will include an xmlns attribute.

Either way, everything else will be inside the <html> tags.