fa
Feedback
Full Stack Camp

Full Stack Camp

رفتن به کانال در Telegram

Fullstack Camp | Learn. Build. Launch. Join us for a hands-on journey through HTML, CSS, JavaScript, React, Node.js, Express & MongoDB — all in one place. Use this bot to search for lessons. @FullstackCamp_assistant_bot DM: @Tarikey6

نمایش بیشتر
کشور مشخص نشده استدسته بندی مشخص نشده است
221
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-27 روز
-330 روز
آرشیو پست ها
css_tutorial.pdf8.89 KB

🎨 Week 2 Day 1: Introduction to CSS (Cascading Style Sheets) 💡 Topic: What is CSS? Why It Matters, How It Works. 🎯 Goal: ➡️Understand the basics of CSS, ➡️how to apply styles to HTML, ➡️ and try your first styles. 🌍 Welcome Back to Fullstack Summer Camp! You survived HTML week — now let’s make those plain web pages look awesome using CSS! Imagine HTML as building a house: walls, rooms, and windows. CSS is painting, decorating, adding curtains, choosing colors, shapes, and sizes. ✅ 1️⃣ What is CSS? CSS stands for Cascading Style Sheets. It’s a language that tells the browser how things should look on a web page. > HTML = Structure > CSS = Style / Design Example: <p>This is a paragraph.</p> Without CSS → Looks plain. With CSS → You can change: ➤ColorFontSizeSpacingBordersBackground ✅ 2️⃣ How to Add CSS to HTML There are 3 main ways: a) Inline CSS (inside an HTML tag)
<p style="color: red;">Hello!</p>
👉 Used for very small, one-time changes. Not recommended for full websites. b) Internal CSS (inside <style> in the HTML file)
<!DOCTYPE html> <html> <head>        <style>            p {                    color: blue;                    font-size: 20px; } </style> </head> <body>         <p>This is blue text!</p> </body> </html>
👉 Good for small projects. Easy for practice. c) External CSS (linked as a separate file) HTML file:
<link rel="stylesheet" href="style.css">
style.css file:
p {         color: green; }
👉 Best practice for real websites. Keeps things organized! ✅ 3️⃣ CSS Selectors: How CSS Targets HTML Basic Rule Format: selector {         property: value; } Selector → Which element (like p, h1, or a class) Property → What to change (like color, size) Value → How you want it (red, 20px) We can:   ➤select by type/element: P, h1, h3, img , span ....
p {    color: blue;}
➤select by class   We use " . "before the name of the class.    Html➺
<p class="highlight">Don't forget this</p>
   css➺
  .highlight {       background-color:yellow;}
➤select by ID   We use "#" before ID name   Html➺
    <button id="main">click</button>
   css➺  
  #main {    background-color: green;}
➤you can also target elements that are inside (nested)   ➺Html 
<div>   <h2>Menu Today</h2>   <p>We have coffee and tea.</p> </div> <h2>Thank You</h2>
    ➺Css
div h2 {          color: orange; }
✅ 4️⃣ Common Properties with Examples 1. Color
h1 { color: purple; }
2. Background Color
body {     background-color: lightgray; }
3. Font Size
p {      font-size: 18px; }
4. Font Family
p {     font-family: Arial, sans-serif; }
5. Text Align
h2 {      text-align: center; }
6. Width and Height
div {     width: 300px;      height: 150px;      background-color: yellow; }
7. Border
p {      border: 2px solid black; }
8. Padding (space inside element) and Margin(space outside element)
div {      padding: 20px;       margin: 30px; }
9. border-radius: Rounds corners
img {      border-radius: 10px; }
10. box-shadow: Adds shadow around boxes
div {      box-shadow: 2px 2px 8px gray; }
11. opacity: Makes things transparent
img {      opacity: 0.8; }
12. cursor: Changes mouse cursor
button {     cursor: pointer; }
13. text-decoration: (underline)
a {      text-decoration: none; }
14. display: Controls layout
div {    display : block; } span {      display: inline; }
15.position: Controls exact placement
div {     position: absolute;     top: 10px;     left: 20px; }
✅ 5️⃣ Combining Multiple Properties
p {     color: white;     background-color: black;     font-size: 20px;     text-align: justify; }
✅ 6️⃣ Real Life Analogy Think of CSS as designing your injera restaurant menu: The structure is the menu paper (HTML) The font color, layout, and sizes are CSS. When someone looks at it, they notice the style first! ✅ 7⃣ Summary ✔️ CSS = Design and Style ✔️ 3 Ways to add CSS (Inline, Internal, External) ✔️ Use selectors + properties ✔️ Common styles: color, background, font-size, width, border #Week2 #Day1 #Css #introductionCss #lesson

Shall we proceed to CSS?
Anonymous voting

The codes for the challenges

15. Which HTML element defines navigation links?
Anonymous voting

14. What is the main purpose of
Anonymous voting

13. What happens if you forget to close a

tag?

Anonymous voting

12. Why use
in HTML?
Anonymous voting

11. What does the autoplay attribute do in
Anonymous voting

10. What does the
tag do in HTML?
Anonymous voting

9. Which attribute is used to identify a unique element on a page?
Anonymous voting

8. To merge two or more cells in a table horizontally, you use:
Anonymous voting

7. The alt attribute in an tag is important because:
Anonymous voting

6. Which tag is used to embed a video in an HTML page?
Anonymous voting

5. What does stand for in HTML tables?
Anonymous voting

4. How can you make a numbered list in HTML?
Anonymous voting

3. What is the correct order of tags to create a basic HTML page?
Anonymous voting

2. Which attribute is used to open a link in a new browser tab?
Anonymous voting

1. What does the tag represent in HTML?
Anonymous voting

✅Week 1 HTML Review Exercise #Week1 #Html #review