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 ποΈ.
-
β Completion of HTML Basics
- Semantic structure
- Sections, divs, headings, lists, and images
-
π Introduction to CSS
- Purpose of CSS in styling web pages
- Linking CSS with HTML
-
ποΈ Types of CSS
- Inline CSS β Directly inside the HTML element using the
styleattribute - Internal CSS β Defined within
<style>tags in the HTML<head> - External CSS β Stored in a separate
.cssfile and linked using<link>
- Inline CSS β Directly inside the HTML element using the
We created a webpage to display the Seven Wonders of the Ancient World using a mix of inline, internal, and external CSS.
- Dark background with highlighted text β¨
- Images styled with rounded borders πΌοΈ
- Inline transformations using
translate()for positioning π - Flexbox usage to align and center content π
index.htmlβ HTML structure (with some inline & internal CSS)style.cssβ External stylesheet for global styling
<h1 style="color: rgb(255, 200, 0); font-family: Georgia; transform: translate(30%);">
Ancient Wonders of the World
</h1>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);
}-
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.
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 β‘.