Display monospace code formatting in HTML

How to show monospace code formatting in HTML

Monospace is also referred to as Teletype <tt> in some settings but this is usually superseded by the use of <code>.

 

<p>

hello there

<br>

<br>

<code>this is monospace</code>

<br>

<br>

<tt> this is also monospace </tt>

</p>

 


Found this tutorial helpful?
Previous
Previous

Masonry gallery to display one column on mobile only

Next
Next

Create a Project Name Generator with a Notion Formula