Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project









CORE ATTRIBUTE:  lang

lang="languagecode"
Available in versions: 4.0
HTML 4.0 tag compatibility: All tags except applet, base, basefront, br, frame, frameset, iframe, param, script
 
The lang core attribute is used to define the base language to be used for displaying text and characters on a Web site. This allows an internationalization of HTML for a very large number of languages.
 
The languages are designated by a two letter code, such as "en" for English or "el" for Greek. One or more hypenated values can be tacked on to the initial two letter code to specify regional or ethentic variations, such as "en-us" for U.S. English.
 
Note that .html texts that contain foreign languages that use special characters will have to be saved as a Unicode file, rather than as an ANSI file, in order for the characters to be properly displayed. Please be aware that some browsers may not be capable of correctly displaying a Unicode file.
 
Code:
<span lang="el">
 
place text of foreign language here
 
</span>

 
The output example is a Unicode file and may not properly display in some browsers.
 
Output:
Click to see output in a separate window


 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information