Popular Google Pages:
◕ Bengali Story writing competition. More..
This article is regarding How to display HTML codes On WebPage?
Last updated on: 28th November 2016.
◕ For tutorials or other purpose sometimes we need to show or display html code in a web page. The following are some process by which we can display html code in html.
If you want to display or show HTML code on a web page so that it is not executed, you need to convert the ' < ' and ' > ' into it's ascii equivalent of
'<' as < and
' >' as >
< p > // My html code here..... < /p >
We will write it as
< p >
// My html code here.....
< /p >
We can use <pre> and </pre> tags.
// My html code here....
We can use
// My html codes ..
In PHP you can use the following code:
echo htmlspecialchars( ' My html code here ' );
◕ Related articles:
► Difference between .html & .htm
► List of wildcard used in MySQL
► MySQL match a string
► Eliminate render blocking CSS
► How google will trust a site?
► What is browser cache? How to leverage browser caching of your website? Browser Caching with .htaccess
► URL Redirection with .htaccess
► Ask Google to re-crawl your URL.
Top of the page