Code (HTML element)

From Wiki @ Karl Jones dot com
Revision as of 07:19, 2 May 2016 by Karl Jones (Talk | contribs) (Created page with "In HTML, the '''code''' element represents a block of computer code. == Description == Uses include: * XML element name * Filename * Computer pro...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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