code-type

Type of Code

The type of this code, used to categorize or describe the code.

Used on Element: <code>

ValueMeaning
Text, numbers, or special charactersTypically a descriptive word such as “pseudo-code” or “scripting” that describes the type of language (not the name of the language) in which the code is written.
Restriction@code-type is an optional attribute; there is no default.

Example

...
<code   
  code-type="user interface control" 
  language="C++"
  language-version="11"
  xml:space="preserve" 
  orientation="portrait"
  position="anchor">
#include &lt;conio.h>
#include&lt;win_mous.cpp>
// Needed for mouse &amp; win functions#define
...</code>
...