I want to write larger than or smaller than symbols inside my html paragraph, for example:
<p>
15 > 13
</p>
I want the paragraph to show 15 > 13
but it's invalid syntax.
How can I fix that? Thanks
I want to write larger than or smaller than symbols inside my html paragraph, for example:
<p>
15 > 13
</p>
I want the paragraph to show 15 > 13
but it's invalid syntax.
How can I fix that? Thanks
You use HTML entities.
<p>
15 > 13
</p>
>
is >
and <
is <
.
There are many others you should learn. See https://developer.mozilla.org/en-US/docs/Glossary/Entity
>
is written using >
and <
with <
<p>
15 > 13
</p>
You can see a full list of available named character references. The general pattern is an ampersand, followed by some name, ended with a semicolon.