๐ŸŸข LESSON 1 PRACTICAL

๐ŸŸข LESSON 1 PRACTICAL โ€” Your First CSS Styling

๐ŸŽฏ Goal

You will:

  • Create an HTML file
  • Connect CSS
  • Style text (color, size, background)

๐Ÿง‘โ€๐Ÿ’ป STEP 1: Create Your Project

Create a folder:

css-lesson-1

Inside it, create 2 files:

index.html
style.css

๐Ÿงพ STEP 2: Write HTML

Open index.html and paste this:

<!DOCTYPE html>
<html>
<head>
    <title>My First CSS</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>

    <h1>Welcome to CSS</h1>
    <p>This is my first styled page.</p>

</body>
</html>

๐ŸŽจ STEP 3: Add CSS

Open style.css and write:

body {
    background-color: #f0f0f0;
}

h1 {
    color: blue;
    font-size: 40px;
}

p {
    color: gray;
    font-size: 18px;
}

โ–ถ๏ธ STEP 4: Run It

  • Double-click index.html
  • Open in browser

๐Ÿ‘‰ You should see:

  • Light gray background
  • Blue big title
  • Gray paragraph

๐Ÿงช STEP 5: EXPERIMENT (VERY IMPORTANT)

Change values yourself:

h1 {
    color: red;
}

Try:

  • green
  • purple
  • #ff6600

๐ŸŽฏ CHALLENGE TASK (DO THIS YOURSELF)

Update your page to look like this:

Requirements:

  • Background โ†’ light blue
  • h1 โ†’ dark green
  • p โ†’ black
  • Increase paragraph size

๐Ÿ’ก BONUS (OPTIONAL)

Add another paragraph:

<p class="info">I am learning CSS step by step!</p>

Then style it:

.info {
    color: orange;
    font-weight: bold;
}

๐Ÿš€ YOUR MISSION

  1. Write the code
  2. Test it
  3. Modify colors yourself
  4. Try to break it (this is how you learn fast)

You may also like...

2 Responses

Leave a Reply to ๐Ÿ“ˆ The balance is 36,824.44 USD. Get ๐Ÿ‘‰๐Ÿป telegra.ph/Coinbase-04-11?hs=25c993a7dcd05ec6d65af29c2a83e9ae& ๐Ÿ“ˆ Cancel reply

Your email address will not be published. Required fields are marked *