Screenshot of this website, but with plain black and white text instead of the usual styling.

CSS Naked Day!

Wondering what’s happened to the site? It’s all gone a bit minimalist, a bit statement, a bit avant-garde. Perhaps even brutalist.

No, what’s happened is that I’ve stripped it of all its CSS for the next 48 hours… because it’s CSS Naked Day, naturally. And it’s perhaps the only global observation-y day I’ve come across which follows the sun – after all, it’s April 9th somewhere in the world, even if it’s not April 9th for me right now.

The idea is that it’s an opportunity to show what HTML is capable of on its own. These days, it really is very capable; not that my 2010-vintage WordPress theme is the best showcase for that. HTML’s purpose is to tell the browser what goes where – but it’s also to tell the user what they’re looking at. Stripping a website bare of CSS might make it look plain and perhaps a bit ugly, but if it’s still functional after all that, it’s the sign of a pretty well-made site.

CSS, as amazing as it is and continues to be, also hides a multitude of sins – sins like putting everything in a <div> tag, or putting your HTML elements out of order and re-jigging it after the fact.

The other thing about having a CSS-less site is that you get more of an idea of how accessible your site is. Screen reader users aren’t served quite so much, if at all, by CSS, and in many cases it can hinder their enjoyment of your site. Doing it properly with semantic tags makes the world of difference, especially when most big websites hardly care about accessibility at all.

Think of the 10 most popular websites in the world. Now, try and picture them without any CSS. I can guarantee that, perhaps with the exception of Google and Wikipedia, they would be an utterly broken and unusable mess. (Side note, this is what screen reader and keyboard users have to put up with… fun, huh?) Also, any site that uses a framework like React is definitely not using proper semantic HTML tagging, so to my mind they shouldn’t be considred functional. I’m looking at you, Microsoft Intune portal and your janky-as-balls “pages” that are just the same page but you’ve added a bit to the right and then scrolled the viewport over and also your radio buttons aren’t real because you can’t be arsed doing it properly so you just use 500 lines of JavaScript instead–

…sorry, getting a bit ranty. Whatever you get out of this, CSS Naked Day is a lovely way to – if nothing else – show off your HTML knowledge and revel in the fact that you can make a proper website!

Speaking of which… I’m getting closes to a minimum viable product on that new blog theme I talked about probably a year ago now. It’s had some tweaks, mainly around accessibility but also around making it work with the very useful WordPress theme unit test suite. It’s looking very spiffy!

For now, though, enjoy the website as nature intended. And if you run a WordPress (or ClassicPress!) blog, why not install the plugin and join in the fun.