Reputation: 127
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
Upvotes: 5
Views: 1734
Reputation: 1603
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 >
.
Upvotes: 7