I\'m experimenting with the < pre> and < code> tags in html 5 as I would like to include some code snippets on my website. I\'m using the page below as a test page but
These code tags only change the font of the text inside to a monospace font, however it does not override the interpretation of other tags (or even php tags).
A better way is to use CSS to get color highlighting, or javascript libraries.