Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Fonts | Text Styles
CSS Fundamentals
course content

Kursinnhold

CSS Fundamentals

CSS Fundamentals

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

book
Challenge: Fonts

Task

Let's apply various font properties to specific elements:

For h1:

  • Font family: Arial.
  • Font size: 36px.
  • Font weight: 600.
  • Font style: italic.

For p:

  • Font family: Georgia.
  • Font size: 18px.
  • Font weight: 400.
  • Font style: normal.
html

index.html

css

index.css

copy
  • font-family: Specifies the font family.
  • font-size: Defines the font size.
  • font-weight: Sets the font weight.
  • font-style: Specifies the font style.
html

index.html

css

index.css

copy

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 6
Vi beklager at noe gikk galt. Hva skjedde?
some-alt