Difference between revisions of "Code (HTML element)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In HTML, the '''code''' element represents a block of computer code. == Description == Uses include: * XML element name * Filename * Computer pro...")
 
(No difference)

Latest revision as of 07:19, 2 May 2016

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