To display HTML markup in an HTML document replace all of the <, >, and & characters with <, >, and &. I've done this too many times by hand and wrote this web page to help out. Paste the HTML markup in the HTML Markup box and click the HTML Escape button.
HTML | Escape |
---|---|
< | < |
> | > |
& | & |
As a bonus, the syntax highlighted markup is shown using the W3schools highlighter. Cut and paste the highlight markup for color syntax highlighting without javascript.