Day 1: What is CSS & Inclusion Methods
Daily Objective
Section titled “Daily Objective”Understand the syntax of CSS rules and how to link external stylesheets to HTML pages.
1. CSS Syntax Anatomy
Section titled “1. CSS Syntax Anatomy”selector { property: value;}2. The Three Ways to Include CSS
Section titled “2. The Three Ways to Include CSS”- External Stylesheet (Best Practice): Linked in
<head>using<link>. Keeps structure separate from presentation.<link rel="stylesheet" href="styles.css" /> - Internal Stylesheet: Embedded in
<head>inside<style>tags. Useful for single-page experiments.<style>h1 { color: #2563eb; }</style> - Inline Styles: Added directly via the
styleattribute on an HTML element (avoid in production).<p style="color: red;">Not recommended for scalable sites</p>
Daily Hands-on Practice (70%)
Section titled “Daily Hands-on Practice (70%)”- Create a
styles.cssfile and link it to yourindex.html. - Set a custom background color and font family for the
<body>.