WordPress magician and SEO expert Joost de Valk writes that a WordPress plugin or theme should never have to output inline styles, especially not in the frontend.
As all good front end developers know, inline styles will prevent some doctypes from validating, and they are also a factor to slow down your page loads—now more than ever a critical factor in SEO as well as user experience, since Google added load time to its ranking algorithm.
If your plugin outputs a piece of code that needs styling, add an ID to the output and output the style using a style tag in the . Next to that you should add an option to remove the style altogether, and tell users how to add the CSS to their own theme’s stylesheet.
I hope all front end developers (and plugin developers) are taking note…
Read more from Joost de Valk: Optional Styles