HTML Lang Attribute Is Used To Define The Language Of The Page Or An Element

Full Stack Coding Tutorials
Visualizações 7 070
92% 88 7

HTML Lang Attribute Is Used To Define The Language Of The Page Or An Element
The HTML lang attribute allows developers to explicitly identify the language that the page is created in. This will help search engines rank pages in appropriate geographic locations.
Google Chrome also uses the lang attribute to figure out if your default browser langauge matches the langauge set on the page. If the languages don't match then your browser will offer to translate the page for you.
In addition to defining the HTML lang attribute for the full page, you can define the language for specific elements on a page.
When you are developing HTML pages you should always define the language of the page use the HTML lang attribute.
That's all there is to it. I hope this video helps you! If you have any questions, please leave them in the comments below. And before you go, subscribe and like :)
If you're into Wordpress, check out my WPLearningLab channel to learn more about WordPress so you can earn more for yourself, for your clients or for your business:

Publicado em


31 Mai 2017



Baixar vídeos:

Carregando o link.....

Adicionar a:

Minha playlist
Assista mais tarde
Comentários 15
Kenny Mês atrás
How can i change my html file in wordpress??
The Anime Randomizer
The Anime Randomizer 3 meses atrás
Thank you so much that helped me a lot
Brain Henry
Brain Henry 2 meses atrás
lol, why do you like anime?
Stew 6 meses atrás
Thank you!
Jkoevy ###
Jkoevy ### 7 meses atrás
GoldenToothBrush 7 meses atrás
Hey thanks for the great video! I've also seen people use the language attribute in a meta tag. Does this make any difference and if so what are the pros and cons of using it in either? Thanks in advance.
Zena Mirza
Zena Mirza 9 meses atrás
how can you read this lang attribute in angular to see what is the set language ?
Nasir Faizi
Nasir Faizi 9 meses atrás
Hi I crest a full HTML site but I want to add a button for French language that if some one visit my site he or she can change the language by clicking that button Please let me know. Thanks.
Faysal Ahmed
Faysal Ahmed 9 meses atrás
thanks....i could learn
Derrick Swansey
Derrick Swansey Anos atrás
I put a code in the begin of my header for registation for google ads and i placed the code where it said to in between the head and the body
EsenJolie Anos atrás
Farkas Henrietta
Farkas Henrietta Anos atrás
Hello! What if I would like my page to be in 3 languages? (the same content) How do I do it? I know you have to make different files for the languages, but I don't really know how to do that.
jamal ouzaid
jamal ouzaid 2 anos atrás
thanks ,
Full Stack Coding Tutorials
You're welcome Jamal, thanks for watching!
Cristina Stoll
Cristina Stoll 2 anos atrás
Besides search engines, the "lang" attribute is ESSENTIAL for screen readers used by blind people! See my video on how a screen reader sounds when you don't do this:
Próximos vídeos
HTML | Language Attribute in HTML
HTML 17:  Lang Attribute
Visualizações 1
HTML: LANG Attribute
Visualizações 16
HTML5 Tutorial: The lang Attribute
008 HTML Lang Attribute
Visualizações 87
the lang attribute
Visualizações 14