In this article we are going to explain what is <code> tag in html or why use code tag in HTML or how to use code element in html with example.
HTML <code> tag is used to represent computer code. It is a phrase tag which defines a piece of computer code. By default, it is displayed in the browser's default monospace font (also known as fixed-width font).
Let's see an example of <code> tag in HTML.
<title>This is the example of code tag</title>
To create a new array, type the following:
<code>var faq = new Array(3)</code>
I hope this article will help to you after reading.Let's check live example