Why SASS?
Syntactically Awesome Style Sheets is a preprocessor scripting language that extends the capabilities of CSS. It provides a range of additional features and functionality that ease the development process and make stylesheets more maintainable.
Pros
- Sass allows developers to define variables to store values which can increase consistency and make it easier to updates styles.
- Sass enables developers to nest selectors within one another.
- Sass allows creation of mixins with arguments which help in avoiding repeating styles.
Cons
- Sass files use the .scss or .sass extension and must be compiled into CSS before they can be used in a web page.
Why CSS?
Cascading Style Sheet is a stylesheet language used to define the presentation and layout of a webpage written in HTML. CSS has basic features of style sheets.
Pros
- CSS follows a plain-text syntax
- CSS files are interpreted by web browsers directly
Cons
- CSS requires you to write each selector separately.
- CSS does not provide functionality to use Mixins and does not use additional features
Final Verdict
This is what I think after learning CSS and SASS:
They both have a relation like a root and stem has. Without CSS, Sass is nothing and without Sass, CSS is too much repetitive and lack a lot of additional features.
Sass is better to use than simple CSS because it makes it a lot easier to make new styles and use them again and again without defining new selectors using mixins.
I have completed my trainings for CSS and SASS from Codecademy, you can see my certifications
Visit My Homepage at https://devibbi.com/
Top comments (0)