152

Possible Duplicate:
printing “<html>” using html

How can I put the < symbol literally into html text without invoking html stuffs.

isherwood
  • 58,414
  • 16
  • 114
  • 157
user1950278
  • 1,685
  • 2
  • 10
  • 15
  • 5
    The character “<” is the LESS THAN character. If you actually meant an angle bracket, then you can use U+2329 LEFT-POINTING ANGLE BRACKET “〈” or some similar character as such (with many caveats). – Jukka K. Korpela Feb 02 '13 at 07:04

2 Answers2

215

Use "&lt;". Similarly, you can use "&gt;" for >, or "&amp;" for &.

These are called HTML "entities". You can learn more about them here

paulsm4
  • 114,292
  • 17
  • 138
  • 190
93

Use &lt; for <.

Or &gt; for >.

Smuuf
  • 6,339
  • 3
  • 23
  • 35