". The Chinese language code is represented by "zh-CN"."/> ". The Chinese language code is represented by "zh-CN".">
Home > Article > Web Front-end > What does lang mean in html?
lang in html is the abbreviation of "language", which means language. It is used to specify the language of element content. The syntax is "<element lang="language_code"><element lang="language_code">", the language of Chinese The code is represented by "zh-CN". <element lang="language_code">
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What is the meaning of lang in html
In html, lang is the abbreviation of English language, which means language.
The lang attribute of HTML can be used to declare the language of a web page or part of a web page, which is helpful for search engines and browsers.
According to W3C recommendations, you should declare the primary language in each page through the lang attribute in the tag.
The syntax is as follows:
<element lang="language_code">
The example is as follows:
<html> <body> <p>This is a paragraph.</p> <p>Ceci est un paragraphe.</p> </body> </html>
Output result:
Recommended tutorial: "html video tutorial"
The above is the detailed content of What does lang mean in html?. For more information, please follow other related articles on the PHP Chinese website!