Description:

The <code> tag is used for indicating a piece of code. The code tag surrounds the code being marked up.

Example Code:
To create a new array, type the following: <code>var faq = new Array(3)</code>
Result:
To create a new array, type the following: var faq = new Array(3)
Attributes:

None

Global Attributes:

The <code> tag also supports the Global Attributes in HTML5

Event Attributes:

The <code> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.