HomeComputer ScienceCSSWhat is CSS: Introduction

What is CSS: Introduction

What is CSS: Introduction

CSS stands for Cascading Style Sheets. CSS is known as a style sheet language that is used to define how HTML element is to be displayed on the screen, paper CSS adds an additional feature to HTML language. mostly, we use CSS with HTML to change the style of HTML elements. It can also be used with any kind of XML documents such as plain XML, SVG, and XUL.

What CSS do?

  • It can help us in controlling the layout of multiple web pages all at once through a single CSS File.
  • Can change the style of HTML elements, documents.
  • Can be used with HTML and JAVASCRIPT.

CSS Example

<!DOCTYPE html>
<html>
 <head>
   <style>
    body {
           background-color: red;
         }

    h1 {
          color: white;
          font-size: 40px;
      }

     p  {
           font-size: 20px;
    }
    </style>
  </head>
 <body>
    <h1> Welcome to PrepareExams.Com </h1>
     <p>Topic - What is CSS.</p>

 </body>
</html>

Why Use CSS?

How CSS solved a Big Problem:

Prior to this, the web developers had to use the CSS tags like font, color, background style, element alignment, border, and size on every page. it means, they used to do repeated work to add styles to HTML elements. it was a long and expensive process. To solve this problem, the World Wide Web Consortium (W3C) created CSS.

Saves a Lot of Work! or Time

CSS saves a lot of work. CSS can control the layout of multiple web pages all at once through an external stylesheet file. you can change the look of an entire website by changing just one file! when required.

Important Note: Dear Students, you can submit your feedback to improve the article. Thanks

What is CSS and how does it work?

Cascading Style Sheets is a style sheet language, is used for describing the presentation of a document written in a markup language such as HTML.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest News