Making Google Fonts code HTML5 valid

Google Fonts are great for embedding on your website but Google’s code snippets which are provided for you to cut and paste aren’t actually HTML5 valid. This means your lovely code is spoiled by this oversight. Luckily it’s a quick and easy fix and is caused by the ‘pipes’ (|) – also known as straight lines or vertical bars – in the stylesheet URL Google provide. Currently, Google Fonts provide you with code that looks something like this to put in your <head>: Continue reading “Making Google Fonts code HTML5 valid”