This page shows three paragraphs with different Tailwind line height classes. Borders help you see the spacing clearly.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tailwind Line Height Example</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-6">
<section>
<h2 class="text-xl font-bold mb-2">Line Height Examples</h2>
<p class="leading-none border p-2 mb-4">This paragraph uses <strong>leading-none</strong>. Lines are very close together, making the text look tight.</p>
<p class="leading-normal border p-2 mb-4">This paragraph uses <strong>leading-normal</strong>. It has a comfortable default line height for reading.</p>
<p class="leading-loose border p-2">This paragraph uses <strong>leading-loose</strong>. Lines have extra space, making the text airy and open.</p>
</section>
</body>
</html>