'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 <
For a greater-than sign (>) use >.
Solution 2:[2]
< for < and > 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 |
