Code Tag

<Code>

Explanation

Code tag is used to highlight the coding portion (codes) in a document.
<code>Text</code>

Example Code:

Result :

Type the below code to make SSH login SSHD_Config
  • The highlighted code will be differentiated from the rest of the contents.
  • The code is shown in the form of "Monospaced fonts or Non proportional fonts".
  • Use <code> with <pre> in order to highlight two or more codes in a HTML document.
It is available in the previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.

Limitations:

It is applicable to all the browsers.

Ask Questions

Ask Question