Code (HTML element)

From Wiki @ Karl Jones dot com
Jump to: navigation, search

In HTML, the code element represents a block of computer code.

Description

Uses include:

Examples

Note the use of the pre element, to prevent the code from actually running in the web page.

<pre>
  <code>
  function doStuff(arg1, arg2) {
    // This is pseudo code to Do Stuff
  }
  </code>
</pre>

See also

External links