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


David Collins
David Collins
Courses Plus Student 2,598 Points

Basic HTML structure

Should I use the language attribute as a common practice for my basic structure in HTML? In some of the code that I have seen its not in there. Now this is what my basic HTML structure looks like

<!doctype html>
<html lang="en">
< head>
 <meta charset="utf-8">
 <title> My Page </title>

3 Answers

Thas Eagans
Thas Eagans
Courses Plus Student 2,533 Points

Language is an 'optional' attribute, and English is the default. So whether you specifically add it or not, the Browser automatically assumes that the page's language is English. So you can decide whether you wanna make it your practice.