Course Content
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: Format Text with CSS
Task
To enhance the visual presentation of the h1
element, apply the following styles:
- Add an underline.
- Convert all letters to uppercase.
- Horizontally recenter the text.
- Set the line height to
2
. - Adjust the letter spacing to
2px
. - Increase the space between words to
5px
. - Apply a text shadow with the values
2px 2px #000000
.
index.html
index.css
text-decoration
: Underlines the text.text-transform
: Converts the text to uppercase.text-align
: Centers the text horizontally.line-height
: Sets the height of the text.letter-spacing
: Increases the space between letters.word-spacing
: Increases the space between words.text-shadow
: Adds a shadow.
index.html
index.css
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 3