3

I wanna write text between of a tag that it should have < . but I can write it

for example

<div class="SampleDiv">Text1<Text2<Text3</div>

How can fix this problem?

MojtabaSh
  • 627
  • 1
  • 11
  • 26

2 Answers2

4

You need to read about HTML entities. In this case, the < character should be replaced with &lt;

pilsetnieks
  • 10,330
  • 12
  • 48
  • 60
0

Just use & together with #60; instead of the "<" or & together with #62 instead of the ">".

Luís Baptista
  • 41
  • 1
  • 1
  • 2