Reputation: 8188
I want to create a tag:
<div id="Id_Field" class="myclass"> <<Nack>> </div>
So the browser will display:
<<Nack>>
Is this possible?
Upvotes: 0
Views: 61
Reputation: 2704
<div id="Id_Field" class="myclass"> <<Nack>> </div>
The above ASCII code will convert to less-than and greater-than symbols when viewing in the browser.
Upvotes: 0
Reputation: 943214
Use the character reference >
to represent a < character as data (as opposed to the start of a tag).
Upvotes: 1
Reputation: 359786
Yes. Use the HTML entities: >
and <
.
http://en.wikipedia.org/wiki/List_of_HTML_entities#Character_entity_references_in_HTML
Upvotes: 2