How to create a CSS link element using JavaScript

As you might know, some of the CSS code is no W3C valid. Even though Google has HTML and CSS errors in it's home page it doesn't mean you want them in yours.

If you want the green sticker for your site you can load this invalid CSS in an other file. Then, load this file using JavaScript.

Here's how to do it:

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.