Language Codes (and optionally, Country Codes) are used
with the lang and dir attributes. The lang attribute
assigns a language to the text in a Web page to be read by the
opening browser. The dir attribute assigns a direction, right or
left, to the assigned language. For example, Hebrew is not read
left to right like English, but right to left.
For example, to specify a particular section in United
States–specific English and another, subsection in Spanish,
you could use the following code:
English text here...
Spanish text here....
Back to English...
Note For more information on language codes and encoding,
see the W3C HTML 4.01 specification, specifically Section
8: Language information and text direction.
0 comments:
Post a Comment