How to Display HTML Tags on Browser without Parsing

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 “&lt; (for <)” and “&gt;(for >)” we can display our html code without parsing.

For example:

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

These above html code will give following output

display.PNG

Ebook Download
View all
Learn
View all