开发者

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?


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


Use &lt; and &gt; 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜