Where does internal CSS go?

Michael picture Michael · Aug 12, 2011 · Viewed 9.5k times · Source

I know that internal CSS should be in the <head></head> section of a (X)HTML document, but does it need to be before/after certain <meta> or <title> elements or can it be any order?

Answer

phihag picture phihag · Aug 12, 2011

According to the HTML5 spec, non-scoped <style> elements can go basically anywhere in the <head>.