CSS or Cascading Style Sheet is used to define styles and visual appearance for your web pages including colors, layout and fonts. CSS is keystone technology that is used to create fully functional websites and web applications. It allows adapting the presentation in different screen sizes.
CSS is primarily designed to store the style presentation information like layout, colors and fonts separately from Website HTML structure. This provides more flexibility, control of your website layout and makes your web pages loads faster and easier to update.
Advantages of CSS:
Allows separating the content: The biggest advantage of CSS is that it allows storing the style presentation information separately from HTML structure.
Easy and simple: CSS is Very easy to use and simple to learn.
Saves a lot of time: CSS gives the flexibility to reuse the same code again for HTML documents and multiple web pages.
Load pages faster: CSS enables multiple pages to share formatting by defining the style rules in separate .css file and reduce complexity and repetition in the structural content. This significantly reduces the file size which results in faster loading pages.
Multiple device compatibilities: It allows content to be optimized in different types of devices and screen sizes. Using the CSS, same HTML document can be viewed on all devices such as Laptop, desktop, mobiles and all screen sizes.