Versions

[{“Name”:“2.0”,“GroupName”:null},{“Name”:“3.2”,“GroupName”:null},{“Name”:“4.0”,“GroupName”:null},{“Name”:“5”,“GroupName”:null}]

Syntax

Remarks

The code element should be used for any kind of “string that a computer would recognize” (HTML5), for example:

Related elements

For variables, the [var element](https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html#the-var-element) can be used.

For computer output, the [samp element](https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html#the-samp-element) can be used.

For user input, the [kbd element](https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html#the-kbd-element) can be used.