0

<pre> tag helps to preserve spaces and line brakes in HTML. But I've a text with angular brackets like -

<some text here>

and I want that to appear on web page as it. But if I've this text in html, it is not shown on the page.

Is there any HTML tag which is used to enclose the text will help to preserve angular brackets?

Alpha
  • 13,320
  • 27
  • 96
  • 163
  • Does this answer your question? [Right angle bracket in HTML](https://stackoverflow.com/questions/10462348/right-angle-bracket-in-html) – Rob Nov 23 '19 at 14:55

2 Answers2

1

use

&gt; to make > 

and

&lt; to make < 
Steve Tomlin
  • 3,391
  • 3
  • 31
  • 63
0

Try this if works:

<xmp>
    <h1>Hello World</h1>
</xmp>

Or you can use &lt; for "<" and, &gt; for ">"

SamiunNafis
  • 142
  • 2
  • 10