Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Typography in Action | Core Concepts and Basic Styling
Tailwind CSS for Web Development

bookChallenge: Typography in Action

Task

Using the Tailwind CSS utilities for typography, create a text component with the following specifications:

  1. A heading (h1) with:
    • Font size of 4xl;
    • Bold font weight;
    • Normal line height.
  2. A subheading (h2) with:
    • Font size of 2xl;
    • Semi-bold font weight;
    • Tight line height.
  3. A paragraph (p) with:
    • Font size of base;
    • Normal font weight;
    • Relaxed line height.
index.html

index.html

copy
  1. Font Size: Use text-4xl, text-2xl, text-base for font sizes;
  2. Font Weight: Use font-bold, font-semibold, font-normal for font weights;
  3. Line Height: Use leading-normal, leading-tight, leading-relaxed for line heights.
index.html

index.html

copy

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 8

Ask AI

expand

Ask AI

ChatGPT

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

bookChallenge: Typography in Action

Task

Using the Tailwind CSS utilities for typography, create a text component with the following specifications:

  1. A heading (h1) with:
    • Font size of 4xl;
    • Bold font weight;
    • Normal line height.
  2. A subheading (h2) with:
    • Font size of 2xl;
    • Semi-bold font weight;
    • Tight line height.
  3. A paragraph (p) with:
    • Font size of base;
    • Normal font weight;
    • Relaxed line height.
index.html

index.html

copy
  1. Font Size: Use text-4xl, text-2xl, text-base for font sizes;
  2. Font Weight: Use font-bold, font-semibold, font-normal for font weights;
  3. Line Height: Use leading-normal, leading-tight, leading-relaxed for line heights.
index.html

index.html

copy

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 8
some-alt