Learn CSS from Scratch – A Beginner’s
Guide
Objective:
To build a strong foundation in CSS by understanding how to style HTML elements
effectively. By the end, you will be able to style your personal website with layouts, colors,
fonts, and more.
Modules & Weekly Plan (4 Weeks Total):
Week 1: Introduction to CSS
Goal: Understand what CSS is and how to apply it.
Topics:
- What is CSS?
- Types of CSS: Inline, Internal, External
- Syntax: Selectors, Properties, Values
- How to link CSS to HTML (`<style>`, `<link>`)
Practice:
- Create a webpage with both inline and internal CSS for color and font changes.
Week 2: Styling Text and Backgrounds
Goal: Learn to style fonts, text, and backgrounds.
Topics:
- Font family, size, weight, and style
- Text alignment, decoration, transformation
- Background color, image, position, repeat
- Color values: names, HEX, RGB
Practice:
- Style a biography page with different font styles and a background image.
Week 3: Box Model, Padding, Margin & Borders
Goal: Understand spacing and layout fundamentals.
Topics:
- CSS Box Model explained
- Padding vs Margin
- Border styles, width, color, and radius
- Width, height, and max/min values
Practice:
- Create a card layout (e.g., for a profile or product) using padding, margin, and border.
Week 4: Layouts and Responsive Design
Goal: Create multi-section and responsive page designs.
Topics:
- CSS Display: block, inline, inline-block, flex
- Flexbox basics
- Media queries for responsive design
- Positioning: static, relative, absolute, fixed, sticky
Practice:
- Style your HTML personal website with Flexbox layout and media queries.
Final Deliverable:
Update your personal website project with the following:
- External CSS file linked to each HTML page
- Consistent fonts, colors, and layout
- Mobile responsiveness using media queries
Tools You’ll Need:
- A code editor like Visual Studio Code (https://code.visualstudio.com/)
- A web browser with developer tools
- Optional: CSS reference site like https://css-tricks.com or
https://www.w3schools.com/css/