In this article, we define a piece of code by using the code Element. It is used to define the piece of computer code. During the creation of web pages, sometimes there is a need to display computer programming code. It could be done by any basic heading tag of HTML, but HTML provides a separate tag which is <code>.
The code tag is a specific type of text which represents computer output. HTML provides many methods for text-formatting but <code> tag is displayed with fixed letter size, font, and spacing.
<code> Contents... </code>
Supported Browsers are listed below:
- Google Chrome
- Internet Explorer