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.

HTML

Marcos Ferrao
Marcos Ferrao
3,772 Points

Do I have to use the Language attribute inside of the HTML tag? If so, why?

I've seen people using that attribute when writing code, I ask that because I'm from Brazil and I would like better understand that.

mikkel pohjola
mikkel pohjola
1,966 Points

you dont have to. It is so google can see what country you come from for example i am from denmark so i use this to tell google that my website is from denmark

<html lang="da"> ... </html>

for more info you can look at w3 schools website

https://www.w3schools.com/tags/ref_language_codes.asp

i hope it help