Joshua
Joshua

Reputation: 15520

HTML - Displaying text with <> in

I've run into a problem that with HTML if I want to show some text which is in between arrows, for example, <UIKit/UIKit.h>, it won't be displayed because it thinks it's a tag not text.

I have tried:

<p><UIKit/UIKit.h></p>

But that doesn't work either, how do you get around this?

Upvotes: 0

Views: 196

Answers (3)

Justin R
Justin R

Reputation: 381

For future reference: W3C's HTML Document Representation. It describes how to encode characters, and there's a link on that page to the full list of HTML character references.

Upvotes: 6

mjschultz
mjschultz

Reputation: 2026

&lt; and &gt; are the HTML entities you should use in place of less than < and greater than > symbols.

Upvotes: 14

meder omuraliev
meder omuraliev

Reputation: 186762

Use &lt; and &gt; in place of the arrows.

Upvotes: 9

Related Questions