Introduction Of CSS, Website बनाना हुआ आसान




CSS (Cascading Style Sheets) is a styling language used to control the layout and appearance of web pages written in HTML and XHTML. It is used to separate the presentation from the structure of a document, making it easier to maintain and modify the layout and design of a website.

Here's a brief introduction to CSS:

*History*: CSS was first introduced in 1996 by Håkon Wium Lie and Bert Bos.

*Key features*:

- *Selectors*: Used to target HTML elements and apply styles.
- *Properties*: Define the styles to be applied (e.g., color, font-size, background-image).
- *Values*: Specify the values for the properties (e.g., red, 18px, url('image.jpg')).
- *Units*: Used to specify measurements (e.g., px, em, %).

*Types of CSS*:

- *Internal CSS*: Written directly in the HTML document using the `<style>` element.
- *External CSS*: Written in a separate file with a `.css` extension and linked to the HTML document using the `<link>` element.
- *Inline CSS*: Written directly in the HTML element using the `style`