HTML

How To Display Html Code On Web Page

Here Laxmikant has explained with an example, How To Display Html Code On Web Page.

In this blog you will learn with an example, How To Display Html Code On Web Page.
Before learn How To Display Html Code On Web Page first know about What do < and > stand for?

  • &lt:&lt stands for the less-than sign ( < )
  • $gt:&gt stands for the greater-than sign ( > )
  • Write this code for How to Display Html Code On Web Page
    [php]
    <pre>
    &lt;html&gt;
    &lt;head&gt;
    &lt;title&gt;How to Display HTML code on Web Page?&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;h&gt;This is a heading &lt;/h&gt;
    &lt;p&gt;This is a paragraph &lt;/p&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    </pre>
    [/php]

    Output
    How To Display Html Code On Web Page

    Any question and suggestion related to this article How To Display Html Code On Web Page, please comment me.

    Leave a Reply

    Your email address will not be published. Required fields are marked *