Reputation: 71
I am creating an HTML email and one of the sentences uses < ie <200 cp/ml
. However, this causes all sorts of issues and the rest of the sentence is broken up into words with =
in between each word. How do I use <
or >
in a sentence in HTML without breaking the code?
Upvotes: 0
Views: 307
Reputation: 10799
Reserved characters in HTML must be replaced with character entities.
for <
you have to use <
and for >
you have to use >
Reference
Upvotes: 0
Reputation: 157136
You have to escape the character by using <
instead of <
. <
is the starting character of an html element. The opposite side is >
(>
).
Upvotes: 4
Reputation: 448
You can use this characters for < < or <
opposite site > > or >
Upvotes: 1