Code (HTML element)
From Wiki @ Karl Jones dot com
In HTML, the code element represents a block of computer code.
Description
Uses include:
- XML element name
- Filename
- Computer program
- Any other string that a computer would recognize
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
- code @ w3.org