With the code tag you can write your text like a computer code. It can generally change the font, face, size, and letter spacing of text.

This text has been formatted to be computer <code>code</code>!

Display: Computer Code

This text has been formatted to be computer code!

Use this tag to separate any computer code you wish to display on your website. It is not always necessary, but the tag exists if you so desire.

HTML – Code Links

You can show it as a separate link on your web page.

<p>Feel free to search <a href="http://www.google.com" target="_blank">
<code>Google</code>
</a> for
anything you wish to find on the internet.</p>

Display: Code Links:

Feel free to search Google for anything you wish to find on the internet.

HTML – <pre> preformatting

The advantage of <pre> tag is that the text will be displayed exactly as we indicate the line breaks, spaces during HTML coding. The output will be displayed just like the code is written.

<pre>
Roses are Red,
                      Violets are blue,
I may sound crazy,
                     But I love you!
</pre>