Open In App

CSS Full Form

The full form of CSS is Cascading Style Sheets. It is a style sheet language used to add styles to the HTML document that will be displayed in the browsers. CSS makes the web page user-friendly and attractive. The CSS was developed by the World Wide Web Consortium (W3C) in the year of 1996. The CSS can be applied to HTML documents in different ways.



Types of CSS

There are three different methods to add CSS styles to the HTML document. These are:



1. Inline CSS: Inline CSS is a method of styling where CSS properties are directly applied to HTML elements within the body section by using the “style” attribute.

<h1 style="color: green;">GeeksforGeeks</h1>

2. Internal CSS: This can be used when a single HTML document must be styled uniquely. The CSS rule set should be within the HTML file in the head section i.e. the CSS is embedded within the <style> tag inside the head section of the HTML file.




<!DOCTYPE html>
<html>
  
<head>
    <title>Internal CSS</title>
    <style>
        h1 {
            color: green;
        }
    </style>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
</body>
  
</html>

3. External CSS: External CSS contains separate CSS files that contain only style properties with the help of tag attributes. CSS property is written in a separate file with a .css extension and should be linked to the HTML document using a link tag.

/* This will be separate file, for example style.css */
<style>
    h1 {
       color: green;
    }
</style>

CSS Versions

CSS (Cascading Style Sheets) has evolved over the years with various versions, each introducing new features, improvements, and specifications. Here are the major CSS versions:

Characteristics of CSS

Advantages of CSS

Disadvantages of CSS


Article Tags :