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...")
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