How to have code display as text within a <p>?

Hey!
I’m currently creating my technical documentation page, and was wondering how to display an example tag as text inside a <p>.

the line i’m trying to type is :

<p>You should include the following  <meta> viewport element in all your web pages: </p>

I would like the <meta> tag to appear just as text.
Thanks!

You can use the corresponding HTML entity codes for the < and > characters.

1 Like

Replace < by &lt; and > by &gt;

<p>You should include the following &lt;meta&gt; viewport element in all your web pages:</p>
1 Like