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

bookChallenge: 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.
index.html

index.html

index.css

index.css

copy

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

index.html

index.html

index.css

index.css

copy

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 5

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Awesome!

Completion rate improved to 2.5

bookChallenge: Style with Class Selectors

Pyyhkäise näyttääksesi valikon

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.
index.html

index.html

index.css

index.css

copy

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

index.html

index.html

index.css

index.css

copy

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 5
some-alt