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

Course Content

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 5

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

course content

Course Content

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 5
We're sorry to hear that something went wrong. What happened?
some-alt