cssinline-styles

What's the difference between inline styles vs classes?


In my head, I've always known to use classes over inline styles for any project. But are there any effective differences between the two?


Solution

  • There is a simple reason. The point of CSS is to separate the content (HTML) from the presentation (CSS). It's all about accessibility and code reuse.