Web accessibility service pageWeb accessibility service page

4.3:H304002 Identify the language of the text.

Improper design

In the HTML label, there was no lang character being setup, therefore one do not know the Web site natural language.

Improper design:

<HTML>
<HEAD>
<TITLE>Taiwan President Web site</TITLE>
</HEAD>
<BODY>Web content</BODY>
</HTML>
          

Proper demonstration

In the HTML label, set the lang character to ˇ¨zh-TWˇ¨, the browser will know by itself that the natural language used in the Web site is traditional Chinese.

Proper example:

<HTML lang="zh-TW">
<HEAD>
<TITLE>Taiwan President Web site</TITLE>
</HEAD>
<BODY>Web content</BODY>
</HTML>
          
End of Main Content