6 out of 6 rated this helpful - Rate this topic

code element | code object

[This documentation is preliminary and is subject to change.]

Specifies a code sample.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 9.2.1

Standards information

HTML information

Closing Tagrequired
CSS Displayinline

DOM Information

Inheritance Hierarchy

 Node
    code
 Element
    code

Remarks

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>

See also

samp

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ