What is CSS

CSS stands for Cascading style sheets. It describes to the user how to display HTML elements on the screen in a proper format. CSS is the language that is used to style HTML documents. In simple words, cascading style sheets are a language used to simplify the process of making a webpage. CSS is used to handle some parts of the webpage. With the help of CSS, we can control the colour of text and style of fonts, and we can control the spacing between the paragraph and many more things. CSS is easy to understand but provides strong control on the Html documents.CSS is combined with HTML.

Key Points on CSS:

Advantages of CSS

Here are the following advantages of CSS, such as:

Why do We Use CSS?

As we all know, CSS is a powerful style sheet language used to control the HTML document to improve the webpage design.

Common CSS Properties:

Example of CSS

Example


    
<!DOCTYPE>
  <html>
  <head>
  <style>
  body{
      background-color:lightblue;
    }
  h1{
        color: white
        text-align:center;
      }
  p{
        font-family: Verdana;  
        font-size: 20px;    
       }
</style>
</head>
<body>
<h1>My First CSS Example</h1>
<p>This is Paragraph.</p>
</body>
</html>

Output

My First CSS Example

This is a paragraph.