Process 1:

By using <xmp> tag we can display our html code without parsing.

For example:

<xmp>
<div>
This is <div> Tag is use to grouping the html elements.
</div>
<span>
This is <div> Tag is use to formatting the text .
</span>
</xmp>

Process 2:

By using <pre> tag with “< (for <)” and “>(for >)” we can display our html code without parsing.

For example:

<pre>
< div>
This is <div> Tag is use to grouping the html elements.
< /div>
< span>
This is <div> Tag is use to formatting the text .
< /span>
</pre>

These above html code will give following output

display.PNG