HTML <code> tag

Usage

Specifies a section of text as computer code.

Example

Code:

<p>This is an example of some HTML code:</p>

<p><code>Welcome to my web page!</code></p>


<p>There, wasn't that simple?</p>

Output:

This is an example of some HTML code:

Welcome to my web page!

There, wasn't that simple?

Required Attributes

  • none

Optional Attributes

  • none

Core Attributes