Syntax of code tag in HTML

 Syntax of code tag in HTML


The <code> tag comes in pairs. 

The content is written between 

the opening (<code>) and closing (</code>) tags.


How to use < code > tag syntax in HTML

<html>

  <head>

    <title>Title of the document</title>

  </head>

  <body>

    <p>Ordinary text.</p>

    <code>Line of program code.</code>

    <p>Continuation of the ordinary text.</p>

  </body>

</html>

Comments

Last 7 Days

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ?

How to make a water bottle using the HTML code?

How to use autoplay and mute attribute with < video > tag in HTML for youtube ? with example

What is img scr or image scr or scr img ?

Tag is used to create inline frame ?