Define multiple languages in html root element's lang attribute?

前端 未结 5 1022
执念已碎
执念已碎 2021-02-01 03:52

I want to determine more than one language for a document, because it\'s available in more than one language. If I use:



        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 04:30

    What HTML version do you use? In HTML 4.01, your use of Content-Language with multiple languages is valid. In HTML5, it's not.

    But even for HTML 4.01, the use of Content-Language for the meta element is not recommended: HTTP headers, meta elements and language information (W3C)

提交回复
热议问题