Ah, the <pre>
tag. It’s quite handy to show off code. Chris Coyier has some good tips on how to style that tag. I had no idea there was a tab-size
parameter in CSS for styling pre
tags. Chris says the default is eight spaces, so it should probably be standard for us to reduce that, especially for mobile.
And speaking of tags, if you want some alternatives to inserting line breaks without <br>
, CSS Tricks has some suggestions for that too.