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.
David CollinsCourses 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> </head> <body> </body> </html>
Thas EagansCourses 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.