DVP
DVP

Reputation: 71

Can't use < in a sentence

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

Answers (3)

Raunak Gupta
Raunak Gupta

Reputation: 10799

Reserved characters in HTML must be replaced with character entities.

for < you have to use &lt; and for > you have to use &gt;

Reference

Upvotes: 0

Patrick Hofman
Patrick Hofman

Reputation: 157136

You have to escape the character by using &lt; instead of <. < is the starting character of an html element. The opposite side is &gt; (>).

Upvotes: 4

Jo_bast
Jo_bast

Reputation: 448

You can use this characters for < &lt; or &#60; opposite site > &gt; or &#62;

Upvotes: 1

Related Questions