Document

What is CSS?


Webpage with and without CSS

Why use CSS

  1. Solves a big problem

  2. Before CSS, tags like font, color, background style, element alignments, border and size had to be repeated on every web page. This was a very long process. For example: If you are developing a large website where fonts and color information are added on every single page, it will be become a long and expensive process. CSS was created to solve this problem. It was a W3C recommendation.

  3. Saves a lot of time

  4. CSS style definitions are saved in external CSS files so it is possible to change the entire website by changing just one file.

  5. Provide more attributes

  6. CSS provides more detailed attributes than plain HTML to define the look and feel of the website.


What does CSS do

Ways to add CSS

Inline CSS

Internal CSS

External CSS

Document
PROCODING
Copyright © 2023 to Rohit Negi