-5

I want to display following output on browser. Please suggest me, how can I generate following output on browser output should :- <html>

I have used following code

 <html>
 <head></head>
 <body>
   <html>
  </body>
  </html>
Rakesh Shetty
  • 4,348
  • 7
  • 37
  • 76
harish
  • 13
  • 6
  • 1
    There are literally hundreds of answers to variations of "how to I escape HTML characters?" on stackoverflow. I suggest you try searching for an answer before asking a question. – Nicolas Rinaudo Aug 27 '14 at 12:27

3 Answers3

0

You need to escape < and > using entities:

&lt;html&gt;
Jakub Kotrs
  • 5,152
  • 1
  • 13
  • 28
0

Use &lt; and &gt; for < and >:

&lt;html&gt;
Patrick Hofman
  • 148,824
  • 21
  • 237
  • 306
0

You need to escape the HTML content you want visible to the user:

<html>
<head></head>
<body>
    &lt;html&gt;
</body>
</html>
Cᴏʀʏ
  • 101,556
  • 20
  • 162
  • 188