Skip to content

Latest commit

Β 

History

History
101 lines (68 loc) Β· 2.59 KB

File metadata and controls

101 lines (68 loc) Β· 2.59 KB

πŸ“˜ Day 12 β€” HTML Wrap-up & Introduction to CSS

Welcome to Day 12 of the Python Full Stack journey! πŸš€ On this day, we completed HTML basics and moved into the world of CSS (Cascading Style Sheets) 🌈. We explored types of CSS and applied them in a project showcasing the Seven Ancient Wonders of the World πŸ›οΈ.


πŸ§‘β€πŸ’» Topics Covered

  1. βœ… Completion of HTML Basics

    • Semantic structure
    • Sections, divs, headings, lists, and images
  2. 🌈 Introduction to CSS

    • Purpose of CSS in styling web pages
    • Linking CSS with HTML
  3. πŸ—‚οΈ Types of CSS

    • Inline CSS β†’ Directly inside the HTML element using the style attribute
    • Internal CSS β†’ Defined within <style> tags in the HTML <head>
    • External CSS β†’ Stored in a separate .css file and linked using <link>

πŸ›οΈ Project: Ancient Wonders of the World

We created a webpage to display the Seven Wonders of the Ancient World using a mix of inline, internal, and external CSS.

πŸ”Ή Key Features

  • Dark background with highlighted text ✨
  • Images styled with rounded borders πŸ–ΌοΈ
  • Inline transformations using translate() for positioning πŸ”„
  • Flexbox usage to align and center content πŸ“

πŸ“„ Files

  • index.html β†’ HTML structure (with some inline & internal CSS)
  • style.css β†’ External stylesheet for global styling

πŸ“Œ Code Snippets

HTML Example (with inline CSS)

<h1 style="color: rgb(255, 200, 0); font-family: Georgia; transform: translate(30%);">
    Ancient Wonders of the World
</h1>

External CSS Example

body {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}
img {
    height: 80px;
    width: 80px;
    border-radius: 20%;
    border: 2px solid rgb(255, 166, 0);
}

πŸ“ Learnings & Takeaways

  • CSS = Webpage personality πŸ‘— β†’ HTML gives structure, CSS gives style.

  • Different CSS types should be chosen wisely:

    • Inline: Quick fixes ⚑
    • Internal: Page-specific 🌟
    • External: Reusable across multiple pages 🌍
  • Flexbox is a powerful layout tool for alignment.


πŸš€ Next Steps

In Day 13, we’ll continue with CSS fundamentals:

  • Colors, gradients, and backgrounds
  • Fonts and typography
  • Box model (margin, border, padding, content)
  • More on layouts (Flexbox & Grid)

✨ Day 12 helped us bridge the gap between structure (HTML) and design (CSS).

HTML builds the skeleton 🦴, CSS adds the style 🌈, and soon JavaScript will bring it to life ⚑.