I would like to include <
and >
inside of a text in HTML but I'm unable to because HTML doesn't understand that it's text.
Is there any way to put those symbols in HTML as a text and make the editor understand it ?
Example:
<div> <this is some text> </div>
Yes, simple use <
and >
like this:
Use then <like> this
<br>
5 < 6 = true
<br>
1 > 2 = false
Your Example would be:
<div><this is some text></div>
They are called HTML Entity's:
An HTML entity is a piece of text ("string") that begins with an ampersand (&) and ends with a semicolon (;) . Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces)
You can check the full entity's list in W3 Org and learn more about it in the MDN Documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With