Benefits of CSS
What is CSS?
Cascading: Multiple styles can overlap in order to specify a range of style from a whole web site down to a unique element. Which style gets applied pertains to the rules of CSS cascading logic.
Style: CSS deals specifically with the Presentation domain of designing a web page (color, font, layout, etc).
Sheet: Normally, CSS is a file separate from the HTML file –linked to the HTML file through its (exceptions apply).
Allows for much richer document appearances than HTML.
Reduce workload by centralizing commands for visual appearance instead of scattered throughout the HTML doc.
• Use same style on multiple pages.
• Reduce page download size.
Advantages of CSS
CSS saves time – You can write CSS once and then reuse same sheet in multiple HTML pages. You can define a style for each HTML element and apply it to as many Web pages as you want.
Pages load faster – If you are using CSS, you do not need to write HTML tag attributes every time. Just write one CSS rule of a tag and apply to all the occurrences of that tag. So less code means faster download times
Easy maintenance – To make a global change, simply change the style, and all elements in all the web pages will be updated automatically.
Superior styles to HTML – CSS has a much wider array of attributes than HTML so you can give far better look to your HTML page in comparison of HTML attributes.
Multiple Device Compatibility – Style sheets allow content to be optimized for more than one type of device. By using the same HTML document, different versions of a website can be presented for handheld devices such as PDAs and cell phones or for printing.
Global web standards – Now HTML attributes are being deprecated and it is being recommended to use CSS. So it’s a good idea to start using CSS in all the HTML pages to make them compatible to future browsers.