Here, we will introduce you about the use and implementation of the <code> tag in html document. This tag is used for representing the programming code in to the html document in the font of computer code text. The text within the <code> tag is marked up with the surrounding.
The <code> tag represents the programming code and program outputs in the computer code font style in the html document. This tag have both start and end tag.
|<code>Your Code Here</code>|
<title>Example of code tag</title>
<b>This is the code tag Example:</b><br>
String str=new String("Gyan");<br>
Difference between HTML5 and HTML4.01
There is no difference with the html4 version and don't have any element specific attribute.
Recommend the tutorial