Adjusting Line Height for Better Readability
📖 Scenario: You are creating a simple webpage with a paragraph of text. The text looks cramped and hard to read. You want to improve the spacing between lines to make it easier on the eyes.
🎯 Goal: Build a webpage with a paragraph and use CSS to set the line height to improve readability.
📋 What You'll Learn
Create an HTML file with a paragraph inside a
<main> elementAdd a CSS rule to set the line height of the paragraph to 1.6
Use semantic HTML5 elements
Ensure the CSS is linked or embedded properly
💡 Why This Matters
🌍 Real World
Web designers and developers often adjust line height to make text easier to read on websites, improving user experience.
💼 Career
Understanding and applying line height is a fundamental skill for front-end developers and UI designers to create accessible and visually pleasing web pages.
Progress0 / 4 steps