HyperText Markup Language/Tag List/code

Use
With the  element you can define, as the name says, code. This could be any code, PHP, C++, HTML anything. Anywhere you have some code in a line of text you should use a  element to indicate it, e.g.

The  element must contain exactly one   element.

Using the element consistently allows you to specify a special layout in CSS for code.

If you are writing an article that uses code you will probably want to use the related elements:
 * var : a variable in computer code;
 * kbd : text the reader should type at the keyboard;
 * samp : sample output from a program or script.

Example
Multi-line blocks of code should be wrapped in a  element to preserve formatting.

Standard attributes

 * class
 * dir
 * id
 * lang
 * style
 * title
 * xml:lang

More info
Tag phrase elements on W3Schools