You need to replace characters that have a special meaning in HTML with "special codes", entities. Those special codes always start with an ampersand and end with a semicolon. They can be a numeric value or sort of an abbreviation.
CODE
Instead of < write < ("lesser than") and instead of > write > ("greater than").
This stops them from being interpreted as HTML by the browser and they are instead printed out. You can find more here:
http://htmlhelp.com/reference/html40/entities/