Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Style with Class Selectors | Getting Started with CSS
CSS Fundamentals
course content

Cursusinhoud

CSS Fundamentals

CSS Fundamentals

1. Getting Started with CSS
2. Styling Text in CSS
3. The CSS Box Model & Spacing Elements
4. Mastering Flexbox for Layouts
5. Adding Decorative Effects with CSS

book
Challenge: Style with Class Selectors

Task

The website provides brief information about the planets. The task is:

  • Select all elements with the text class name and apply the color property with the value brown.
  • Select all elements with the sub-text class name and apply the color property with the value grey.
html

index.html

css

index.css

copy

Use . and its class name (e.g., .text) to select an element by its class name.

html

index.html

css

index.css

copy

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt