Menu
CoddyTech

Font Weight

Part of the Fundamentals section of Coddy's Tailwind CSS journey. Lesson 12 of 55.

In a reading list, font-semibold requests weight 600 while font-normal requests 400. Weight changes the thickness of glyph strokes, not their font size.

<div class="font-semibold">Museum sample</div>

Font availability affects how a browser draws a requested weight. Tailwind sets the CSS value; it does not download a font. Use stronger weight to emphasize a label without assuming it changes the HTML meaning. Common weights are font-medium (500), font-semibold (600), font-bold (700) and font-extrabold (800).

challenge icon

Challenge

Easy

Make the event name use font weight 700.

Keep the supplied content and element IDs. Edit the HTML utility classes or the requested CSS. Click Run preview to refresh the preview after edits, then use Check/Run code to grade your work.

Try it yourself

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Practice studio</title><link rel="stylesheet" href="./styles.css"></head><body>
<div id="target" class="">Evening Lecture</div>
</body></html>
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals