Computer code


The code element identifies a block of text as being computer code.

The contained code should be not treated by the browser as natural spoken or written language but, rather, it should be treated by spell-checkers and search engines as not having misspellings.

Traditionally code sections are rendered in monospaced font.


code {
#include <iostream>

using namespace std;

int main(int argc, char * argv[])
cout << "Hello, world!" << endl;
return 0;
The code element

semantax > jargon > codeComputer code