Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Add The Styles using the Class Name | Introduction to CSS
CSS Fundamentals
course content

Course Content

CSS Fundamentals

CSS Fundamentals

1. Introduction to CSS
2. Text Styles
3. Box Model and Element Spacing
4. Flexbox
5. Decorative Effects

Challenge: Add The Styles using the Class Name

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

css

index

js

index

copy

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

html

index

css

index

js

index

copy

Everything was clear?

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