Display html code on website or wordpress site

<' (less than ) and closed with '>' greater than tag to be converted as

'<' to &lt; (we write less than tag (<) as &lt; )
'>' to &gt; (we write greater than tag (>) as &gt; )

More details follow given Link for the code