CSS – Introduction

Introduction to CSS – Cascading Style Sheet

CSS is a powerful language. CSS is also called Cascading Style Sheet. CSS is used to design web pages because you cannot properly customize web pages through html.
css
That is why we use css. Because by css you can customize the website according to yourself. And you can make your website attractive.
Whenever we write css. So let's write over some tag. And css can be written in 3 ways.
  • Inline CSS
  • Internal CSS
  • External CSS
The CSS was created by Hakon Wium Lie in 1994 and then published by the W3C - World Wide Web Consortium in 1996.

Inline CSS

Inline css is used only within HTML tags. But for this we have to use the style attribute.

Internal CSS

To write internal css we have to create style tag. Because you cannot write internal css without style tag.

External CSS

To write external css, we have to create a file. And whenever we create a file of external css. So css file extension .css has to be given.
Note: - If you use any property of css inside the inline css. And use the same property in internal css or external css. So the property of external css or internal css does not work. Because that property is used in inline css.

Property and Value

You can design a complete web page for Graphic interface very well. And property and value is used to write css. Now look at the code given below.
background : red;
The background here is a property. And red a value | The ( 🙂 colon is used after every property in css. And after every value (;) the statements are broken by semicolon.

Advantages of CSS – Cascading Style Sheet

If we talk about CSS Advantages then css has lots of Advantages. Below are some Advantage of CSS.
  • CSS is a language whose use saves us time. And you can customize more than one web pages according to your requirements in the shortest possible time.
  • We can create a library of css. And whenever you want, you can apply it on any web page. And you can also customize it when needed.
  • It is very easy to customize web pages with css. Because css is an easy language. Which everyone can easily learn.
  • css is such a language. Which provides more option than html language. To make our web page attractive.