CSS ka Introduction

CSS ka full form hai Cascading Style Sheets. Ye ek language hai jo HTML pages ke look aur layout ko design karne ke liye use hoti hai.

CSS Kya Hai?

CSS aapko HTML documents ke elements ko visually style karne ka control deta hai, jaise colors, fonts, spacing, positioning, animations, aur responsive design banana.

CSS ka Importance

CSS kaise kaam karta hai?

CSS selectors aur properties ka use karke HTML elements ko style karta hai. Selector batata hai ki kis element ya elements ko style dena hai, aur properties jaise color, font-size, margin, etc. style define karte hain.

CSS likhne ke 3 tareeke

Basic CSS Example

<!DOCTYPE html>
<html>
<head>
  <style>
    p {
      color: blue;
      font-size: 18px;
    }
  </style>
</head>
<body>
  <p>Yeh ek example paragraph hai.</p>
</body>
</html>

CSS Selector Example

Is example me, selector p ka matlab hai ki page ke sabhi paragraph elements ko style dena hai.

Aap aur kya seekhenge?

CSS seekhkar aap apne webpages ko sundar aur user-friendly bana sakte hain.