html标签中的lang属性 [英] lang attribute in html tags

查看:149
本文介绍了html标签中的lang属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< input lang ="fa"/>
上方html标记中的1-lang属性意味着什么,用法是什么?

2-如何将其他语言设置为html中的输入框?

<input lang="fa" />
1-lang attribute in html tags above waht means and what usage?

2-how i can set a other language to a input box in html?

推荐答案

HTML lang属性可用于声明网页或网页的语言.网页的一部分.这旨在帮助搜索引擎和浏览器.

根据W3C的建议,您应该在< html>内的lang属性声明每个网页的主要语言.标签,例如:
The HTML lang attribute can be used to declare the language of a Web page or a portion of a Web page. This is meant to assist search engines and browsers.

According to the W3C recommendation you should declare the primary language for each Web page with the lang attribute inside the <html> tag, like this:
<html lang="en">
...
</html>



来源: http://www.w3schools.com/TAgs/ref_language_codes.asp [



Source: http://www.w3schools.com/TAgs/ref_language_codes.asp[^]


亲爱的朋友,

您可以为此向Google推荐.

http://www.w3schools.com/tags/ref_language_codes.asp [
Dear Friend,

you can refer the google for this.

http://www.w3schools.com/tags/ref_language_codes.asp[^]

Refer the below link for the more reference.


这篇关于html标签中的lang属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆