how to display html tags in browser?

whenever you tried to publish a html code in your browser, the browser will display the output of the code instead of displaying the actual code.

eg. when you want to publish a html code for displaying hello world message. u can directly give the following code.












the browser will process the html tags and display
Hello World
instead of printing the actual code.

so try to replace < with "& lt;" and > with "& gt;"
this will help you to display the actual code on browser.



Comments

Popular posts from this blog

Find & Replace + Transpose in Notepad++

Simple Login Page Using HTML5

Run C++ (Full Screen mode) in Windows7