What is CSS and difference between CSS and CSS3
Today in this tutorial, we will learn about CSS and history about CSS and also know about difference between CSS and CSS3 that which one is better to use in today’s world.
CSS stands for Cascading Style Sheets. This style sheet works with HTML and provides styling to our web pages. Using CSS, you can control the color, style, spacing, area, background, layout and many more using CSS. CSS is easy to learn and understand but provides powerful control over presenting web pages in virtual world. CSS can be of three types that are:
- Internal CSS : Script written in head tag.
- Inline CSS : Script written in tag itself.
- External CSS : Script written in another file saved with .css and linked using script tag.
Priority of Inline CSS is more than other two.
CSS was first proposed by Häkon Wium Lie on October 10, 1994. Several other style sheet languages were proposed at the same time and discussion on public meeting lists and inside W3C resulted first CSS (CSS1) is released in 1996.
Difference between CSS and CSS3
- The main difference between CSS and CSS3 is that CSS3 is the latest version and support responsive design while CSS not.
- CSS is slower than CSS3.
- CSS3 provides a box-sizing tool which allows the user to get correct size while CSS does not.
- Animation and 3D transformations are better in CSS3, while CSS does not provide.
- CSS support RGBA, HSLA, HSL and gradient colours while CSS doesn’t provide.
Check out other blogs as well.