HTML - Displaying text with <> in
I've run into a problem that with 开发者_如何学PythonHTML 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?
<
and >
are the HTML entities you should use in place of less than <
and greater than >
symbols.
Use <
and >
in place of the arrows.
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.
精彩评论