
The CSS Universe with Austin Gil - JSJ 592
JavaScript Jabber
00:00
The Benefits of Inline Styles
Inline style is just instead of having a class attribute on the specific element saying class equals P5. What's the benefit like just the fact that I have the letter P instead of the entire word padding? What's the upside here? Part of it is potentially the cache ability of a CSS file that you don't have to write quite so much into your markup. But I would also say that inline styles don't have access to things like pseudo elements, pseudo classes, media queries so you still need to write CSS to be able to target those.
Transcript
Play full episode