If you try to type the HTML as it is (example <, >), the web browser will interpret that as an instruction to display what follows in a new line and will not display the HTML code as it is. So in order to display the above characters you need to replace them. Check the image below
So in order to show the code in the front end copy and paste the HTML code which you want to show in the front end into a notepad file and click EDIT in the menu bar and select "Replace with" and "Find what:" options to replace the symbols with the appropriate codes. (see screen shot below:)
very useful post
ReplyDelete