Introduction:

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.

Description:

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.

<!DOCTYPE html>
<html>
<head>
    <title>This is the example of code tag</title>
</head>
<body>
    To create a new array, type the following:
     <code>var faq = new Array(3)</code>
</body>
</html> 

Output:

 how to use html code tag

I hope this article will help to you after reading.

0 comments


Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like