CSS Full Notes in Hindi for Beginners
अगर आप Web Designing सीखना चाहते हैं और HTML के बाद CSS सीखना चाहते हैं, तो यह post आपके लिए बहुत useful है। इस post में हमने CSS क्या है, CSS का Full Form, CSS का उपयोग, HTML और CSS में अंतर, CSS Syntax, Selector, Property, Value, Comments, Inline CSS, Internal CSS और External CSS को आसान हिन्दी में step by step समझाया है।
यह notes beginners, students, BCC, ADCA, O Level, Web Designing learners और computer institute students के लिए बहुत helpful हैं। अगर आप website को सुंदर और professional बनाना सीखना चाहते हैं, तो यह CSS Full Notes in Hindi आपके लिए complete guide की तरह काम करेगा।
📑 CSS Full Notes in Hindi – Index (Short)
- CSS क्या है?
- CSS का Full Form
- CSS का उपयोग
- HTML और CSS में अंतर
- CSS Syntax
- Selector, Property और Value
- CSS Comments
- Inline CSS
- Internal CSS
- External CSS
1. CSS क्या है?
CSS क्या है? (Definition)
CSS एक Styling Language है जिसका उपयोग web page को सुंदर, रंगीन और आकर्षक बनाने के लिए किया जाता है।
सरल भाषा में समझें
जब हम HTML से webpage बनाते हैं, तो HTML सिर्फ webpage का structure बनाता है।
जैसे:
- Heading
- Paragraph
- Image
- Link
- Table
लेकिन webpage को:
- Color देना
- Font बदलना
- Background देना
- Border लगाना
- Button ko attractive banana
ये सब काम CSS करती है।
याद रखने की आसान trick
- HTML = Structure
- CSS = Design / Decoration
CSS Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>CSS Example</title>
<style>
h1 {
color: red;
}
</style>
</head>
<body>
<h1>Hello Students</h1>
</body>
</html>
Output / Result
ऊपर दिए गए code में Hello Students heading red color में दिखाई देगी।
👉 इससे समझ आता है कि CSS webpage को style देती है।
2. CSS का Full Form
CSS का Full Form क्या है?
CSS ka full form Cascading Style Sheets hota hai.
सरल भाषा में समझें
- Cascading = Rules ek order me apply hote hain
- Style = Design ya look
- Sheets = Style rules ka collection
👉 मतलब CSS एक ऐसी language है जो web page par design rules apply karti hai.
Easy Memory Trick
CSS = Color + Style + Shape
(Ye official full form nahi hai, sirf yaad rakhne ke liye)
CSS Full Form Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>CSS Full Form</title>
<style>
p {
color: blue;
font-size: 20px;
}
</style>
</head>
<body>
<p>CSS ka full form Cascading Style Sheets hai.</p>
</body>
</html>
Output / Result
Paragraph:
- Blue color me dikhai dega
- 20px size me dikhai dega
3. CSS का उपयोग क्या है?
CSS का उपयोग
CSS ka use webpage ko:
- सुंदर बनाने
- Color dene
- Font size बदलने
- Background लगाने
- Border लगाने
- Button ko design karne
- Layout ko professional banane
के लिए किया जाता है।
सरल भाषा में समझें
CSS ke bina webpage simple aur boring dikhta hai.
CSS ke saath webpage attractive aur professional lagta hai.
CSS Use Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>Use of CSS</title>
<style>
body {
background-color: lightyellow;
}
h1 {
color: darkgreen;
text-align: center;
}
p {
color: blue;
font-size: 18px;
}
</style>
</head>
<body>
<h1>Welcome Students</h1>
<p>CSS webpage ko beautiful banata hai.</p>
</body>
</html>
Output / Result
- Page ka background light yellow hoga
- Heading dark green aur center me hogi
- Paragraph blue color me dikhai dega
4. HTML और CSS में अंतर
HTML और CSS में क्या अंतर है?
HTML webpage ka structure banata hai,
jabki CSS webpage ko design aur style deta hai.
HTML ka kaam
- Heading banana
- Paragraph banana
- Image lagana
- Link banana
- Table banana
CSS ka kaam
- Heading ka color
- Paragraph ka font size
- Background color
- Border design
- Layout design
Simple Formula
- HTML = Kya dikhana hai
- CSS = Kaise dikhana hai
HTML vs CSS Example (Input Code)
Only HTML
<!DOCTYPE html>
<html>
<head>
<title>HTML Only</title>
</head>
<body>
<h1>My Website</h1>
<p>This is a simple paragraph.</p>
</body>
</html>
HTML + CSS
<!DOCTYPE html>
<html>
<head>
<title>HTML and CSS</title>
<style>
h1 {
color: purple;
text-align: center;
}
p {
color: green;
font-size: 20px;
}
</style>
</head>
<body>
<h1>My Website</h1>
<p>This is a simple paragraph.</p>
</body>
</html>
Output / Result
Only HTML:
- Normal heading
- Normal paragraph
HTML + CSS:
- Heading purple aur center me
- Paragraph green aur 20px size me
5. CSS Syntax (सिंटैक्स)
CSS Syntax क्या है?
CSS syntax ka matlab hai CSS rule likhne ka sahi format.
Basic CSS Syntax
selector {
property: value;
}
Isme:
- Selector = Kis HTML element par style lagani hai
- Property = Kya badalna hai
- Value = Kaunsi value deni hai
Example
h1 {
color: red;
}
यहाँ:
- h1 = Selector
- color = Property
- red = Value
CSS Syntax Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>CSS Syntax</title>
<style>
h1 {
color: red;
font-size: 30px;
text-align: center;
}
</style>
</head>
<body>
<h1>CSS Syntax Example</h1>
</body>
</html>
Output / Result
Heading:
- Red color
- 30px size
- Center me दिखाई देगी
6. Selector, Property और Value
Selector क्या होता है?
Selector batata hai ki kis HTML element par style lagani hai.
Example:
- h1
- p
- body
Property क्या होती है?
Property batati hai ki kya badalna hai.
Example:
- color
- font-size
- background-color
Value क्या होती hai?
Value batati hai ki kaunsi value deni hai.
Example:
- red
- 20px
- yellow
Example
p {
color: blue;
}
यहाँ:
- p = Selector
- color = Property
- blue = Value
Selector Property Value Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>Selector Property Value</title>
<style>
p {
color: blue;
font-size: 22px;
}
</style>
</head>
<body>
<p>This is a paragraph.</p>
</body>
</html>
Output / Result
Paragraph:
- Blue color
- 22px size
7. CSS Comments
CSS Comment क्या है?
CSS me comment ka use code ko samjhane ke liye hota hai.
Browser comment ko ignore karta hai.
CSS Comment Syntax
/* This is a CSS comment */
👉 Comment browser me दिखाई नहीं देता।
CSS Comment Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>CSS Comment</title>
<style>
/* This style is for heading */
h1 {
color: red;
}
/* This style is for paragraph */
p {
color: blue;
}
</style>
</head>
<body>
<h1>Hello Students</h1>
<p>This is a CSS comment example.</p>
</body>
</html>
Output / Result
- Heading red color me
- Paragraph blue color me
- Comment browser me दिखाई नहीं देगा
8. Inline CSS
Inline CSS क्या है?
Jab CSS ko directly HTML tag ke andar style attribute me likha jata hai, use Inline CSS kehte hain.
Example
<h1 style="color:red;">Hello</h1>
👉 Isme style seedha tag ke andar likha gaya hai.
Inline CSS Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>Inline CSS</title>
</head>
<body>
<h1 style="color:red; text-align:center;">Welcome Students</h1>
<p style="color:blue; font-size:20px;">This is inline CSS example.</p>
</body>
</html>
Output / Result
- Heading red color me aur center me
- Paragraph blue color me aur 20px size me
9. Internal CSS
Internal CSS क्या है?
Jab CSS ko HTML document ke <head> section ke andar <style> tag me likha jata hai, use Internal CSS kehte hain.
Structure
<head>
<style>
h1 {
color: red;
}
</style>
</head>
👉 Ek hi page ke liye CSS likhne ka best तरीका है।
Internal CSS Example (Input Code)
<!DOCTYPE html>
<html>
<head>
<title>Internal CSS</title>
<style>
h1 {
color: green;
text-align: center;
}
p {
color: blue;
font-size: 18px;
}
</style>
</head>
<body>
<h1>Internal CSS Example</h1>
<p>This is paragraph using internal CSS.</p>
</body>
</html>
Output / Result
- Heading green color me aur center me
- Paragraph blue color me aur 18px size me
10. External CSS
External CSS क्या है?
Jab CSS ko alag .css file me likha jata hai aur HTML file se link kiya jata hai, use External CSS kehte hain.
Professional Method
Isme:
- HTML file alag hoti hai
- CSS file alag hoti hai
HTML me CSS file link karna
<link rel="stylesheet" href="style.css">
External CSS Example (Input Code)
Step 1: HTML File (index.html)
<!DOCTYPE html>
<html>
<head>
<title>External CSS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>External CSS Example</h1>
<p>This is paragraph using external CSS.</p>
</body>
</html>
Step 2: CSS File (style.css)
h1 {
color: purple;
text-align: center;
}
p {
color: brown;
font-size: 20px;
}
Output / Result
- Heading purple color me aur center me
- Paragraph brown color me aur 20px size me
CSS Full Notes in Hindi – Part 1 Practical Work
Class Practical
Students ko ye 5 practical jarur karna chahiye:
Practical 1
h1 ka color red karo
Practical 2
p ka font-size 20px karo
Practical 3
Inline CSS se heading center karo
Practical 4
Internal CSS se page style karo
Practical 5
External CSS file bana kar HTML se link karo
CSS Viva Questions
- CSS ka full form kya hai?
- CSS ka use kis liye hota hai?
- HTML aur CSS me kya difference hai?
- CSS syntax ka basic format kya hai?
- Selector kya hota hai?
- Property kya hoti hai?
- Value kya hoti hai?
- Inline CSS kahan likhi jati hai?
- Internal CSS kahan likhi jati hai?
- External CSS file ka extension kya hota hai?
Conclusion
इस post में आपने CSS Full Notes in Hindi का शुरुआती और सबसे important हिस्सा सीखा। हमने CSS क्या है, CSS का Full Form, CSS का उपयोग, HTML और CSS में अंतर, CSS Syntax, Selector, Property, Value, Comments, Inline CSS, Internal CSS और External CSS को आसान भाषा में समझा। अगर आप beginner हैं, तो यह CSS सीखने की सबसे अच्छी शुरुआत है।
अगर आपको यह CSS Full Notes in Hindi for Beginners पसंद आए, तो इसे अपने दोस्तों के साथ जरूर share करें और अगला part भी पढ़ें।
इसे भी पढ़ें :-
- HTML Full Notes in Hindi
- Web Designing Full Notes in Hindi
- JavaScript Basic Notes in Hindi
- Internet Full Course Notes in Hindi
- Basic Computer Notes in Hindi