CODE (<code>) Tag

by Jai 10-Jun-19

0 442


<code> tag is a phrase tag used to represent computer program. By default, it is displayed in the browser's default monospace font which is also referred as non-proportional font. This tag comes in pairs. The content is written between the opening (<code>) and the closing (</code>) tags.

You can also use CSS property to change its style.

Browsers Support:

Google Chrome
Firefox
Safari
Internet Explorer

CODE (<code>) Tag

CODE (<code>) Tag

CODE (<code>) Tag

CODE (<code>) Tag

Code:

<!DOCTYPE html>
<html>
<head>
<title>The Code Tag</title>
</head>
<body>
<h2> Example Of Code Tag </h2>
<p> This is Ordinary text. </p>
<code>
$(document).ready(function
{

})
</code>
<p> Continuation of the ordinary text. </p>
</body>
</html>

Output:

CODE (<code>) Tag


Share:


Comments

    Waiting for your comments

Leave a Reply