In this chapter, we will learn about <code> tag of HTML. <code> tag of HTML is used to denote the commuter code. It is a phrase tag that reflects a piece of computer code. By default on the browser, it is displayed as Monospace font.
HTML phrase tags:-
Tag | Description |
<strong> | Defines important text |
<em> | Renders as emphasized text |
<code> | Defines a piece of computer code |
<samp> | Defines sample output from a computer program |
<kbd> | Defines keyboard input |
<var> | Defines a variable |
Browser Support:-
All modern browsers support <code> tag of HTML.
Example:-
<strong>This is strong tag.</strong><br>
<em>This is em tag.</em><br>
<code>This is code tag.</code><br>
<samp>This is samp tag.</samp><br>
<kbd>This is kbd tag.</kbd><br>
<var>This is var tag.</var>
Output:-
