What are style sheets? Style sheets describe how documents are presented on screens, in print, or perhaps how they are pronounced. W3C has actively promoted the use of style sheets on the Web since the Consortium was founded in 1994. Oftentimes there' s a need to override existing rules, so appending new styles to the HEAD doesn' t work in every case. I came up with this simple function that summarizes all not valid " append to the BODY" approaches and is just more convenient to use and debug ( IE8+ ). In general, it' s simpler and more efficient to access and modify an element' s inline style than it is an external style sheet.
However, at times the later may be called for. styleSheets[ 0] / / access the first external style sheet on the page. read CSS property from stylesheet [ duplicate] Ask Question 1.