'how to write < inside an HTML element

I want to know how I can write some text in HTML without it being interpreted as a tag? I tried writing <p> <some text> 0</p> inside a paragraph and it only displays 0



Solution 1:[1]

Escape sequences are used to display a character which may otherwise be unsafe if used literally.
For a less-than sign (<) use &lt;
For a greater-than sign (>) use &gt;.

Solution 2:[2]

&lt; for < and &gt; for >

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Tiago Rangel de Sousa