language Code Language

Programming language in which this code is written, for example:
  • javascript”, for code written in “Javascript 3.0” (Note: The “3.0” can be recorded in the @language-version attribute.); or
  • dtd” for an XML DTD fragment.


This attribute does not record the name of a natural language, such as French. The attribute @xml:lang records natural languages.
OPTIONAL on elements: <code>, <inline-code>
Value Meaning
Text, numbers, or special characters The lower case name of the programming or scripting language.
Restriction This is an optional attribute; there is no default.