code

< html‎ | elements
Jump to: navigation, search

code



Summary

The code element (<code>) specifies a fragment of computer code.


Overview Table

DOM Interface HTMLElement

Text within the code block is not interpreted by the browser.

Examples

This example uses the CODE element to display text in a font used to represent computer code, such as values or variable names.

<CODE>Here is some text in a small, fixed-width font.</CODE>

Notes

Remarks

Standards information


HTML information

{

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related pages (MSDN)

  • samp

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]