Textpattern CMS Template Tags

<txp:lang /> single tag, 0 attributes

lang

The lang tag is a single tag. Textpattern will replace this tag with the 2-letter code of the language which is set as the site’s language preference on the Preferences Subtab, according to RFC 1766.

<txp:lang /> 1 examples

Define a document’s language

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<txp:lang/>" lang="<txp:lang/>">
<head>
  <title><txp:site_name/> | <txp:site_slogan/></title>
  <meta http-equiv="Content-Language" content="<txp:lang/>" />
</head>

Why you might do this…
When declaring a DTD, namespace and language that a site is served, the lang tag is useful for ensuring translators, search engines and content parsers handle the document in the correct manner.

Other tags used: site_name, site_slogan