How To Display HTML Code on web pages

  • It will be little bit tricky to show HTML code on the web page. While using the HTML code on website that need to be displayed, but the browser will read it as the code and the code is converted to page. So, the code is not displayed on the page while browsing. Like if the code <body> is tried to display on the website, the browser will take it as the HTML code and it will be disappear while browsing. 
  • There is a trick to ignore the code from the browser.
  • Use &lt; and &gt; where necessary.
  • For Eg:
    • If <body> is to be displayed, it need to be converted like this.
      • &lt; body &gt;

Share :

More Quotes
Back To Top

facebook main


Powered by Blogger.