element.style in chrome element inspector?

Adib Aroui picture Adib Aroui · Mar 29, 2013 · Viewed 23.7k times · Source

When I inspect elements in Chrome, under my styles I have element.style {}, What does this refer to? It contains styles I am not including in my code source.

Answer

SLaks picture SLaks · Mar 29, 2013

Those are inline styles.
They come from the style="" attribute or from Javascript code that sets element.style.someProperty.