Kursinhalt
CSS Fundamentals
CSS Fundamentals
1. Getting Started with CSS
What is CSS and Why is it Important?Linking CSS to an HTML DocumentMastering CSS Selectors for Styling HTML ElementsChallenge: Apply Your First CSS StylesChallenge: Style with Class SelectorsEnhancing Styles with User Action Pseudo-ClassesChallenge: Apply User Action Pseudo-ClassesChanging Text Colors in CSSOptimizing Workflow for Efficient CSS CodingChallenge: Use Variables for Better CSS Management
3. The CSS Box Model & Spacing Elements
What is the CSS Box Model?Understanding Box Sizing in CSSAdding Space with Margins and PaddingChallenge: Apply Box Sizing to ElementsUsing Structural and Functional Pseudo-ClassesChallenge: Practice Structural Pseudo-ClassesUnderstanding Block, Inline, and Inline-Block ElementsWorking with Block-Level ElementsWorking with Inline ElementsChallenge: Predict Page Layout with Different Element Types
Challenge: Explore Font Properties
Task
Let's apply various font properties to specific elements:
For h1
:
- Font family:
Arial
. - Font size:
36px
. - Font weight:
600
. - Font style:
italic
.
For p
:
- Font family:
Georgia
. - Font size:
18px
. - Font weight:
400
. - Font style:
normal
.
index.html
index.css
font-family
: Specifies the font family.font-size
: Defines the font size.font-weight
: Sets the font weight.font-style
: Specifies the font style.
index.html
index.css
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 6