In my HTML project, I am trying to mention the <p> tag. However, VS Code is interpreting it as an actual <p> tag and it causes weird things to happen. Does anybody have a way to get around this? Thank you in advance!
In my HTML project, I am trying to mention the <p> tag. However, VS Code is interpreting it as an actual <p> tag and it causes weird things to happen. Does anybody have a way to get around this? Thank you in advance!
Use < in place of < and > in place of >.
Bytheway, it is common to style code snippets with the code tag.
<code><p></code>
And if you ever need a multiline code snippet, wrap it in a pre tag to preserve whitespace.
<pre><code><p>
this stays indented and the newlines where added without a br tag
</p>
</code></pre>
You need to use HTML character entities for greater than & less than signs. Try
>p<