Concept to display HTML code on the website.
The HTML code is started from a tag that is ‘<‘ (less than ) and closed with ‘>’ greater than.
Let’s come to the point, you need to convert.
‘<‘ to < (we write less than tag (<) as < )
‘>’ to > (we write greater than tag (>) as > )
- <pre>
- <div class=”html”>
- <html>
- <head><title>Title</title></head>
- <body>
- <p>Unrendred html</p>
- </body>
- </html>
- </div>
- </pre>
Note:- If you have problem to generate custom html code. Please use display html code on the webpage generator. Link given below.