Complete the code to set the line height to 1.5 using Tailwind CSS.
<p class="[1]">This is a paragraph with adjusted line height.</p>
leading-4 which is too small and makes lines cramped.leading-8 which is too large and creates too much space.The class leading-6 sets the line height to 1.5 in Tailwind CSS, which improves readability by spacing lines nicely.
Complete the code to apply a line height of 2 (double spacing) using Tailwind CSS.
<div class="[1]">Double spaced text for better readability.</div>
leading-5 which is smaller than double spacing.leading-3 which is too tight.The class leading-8 sets the line height to 2, which doubles the space between lines.
Fix the error in the code by choosing the correct Tailwind class for line height 1.25.
<span class="text-base [1]">Text with slightly increased line height.</span>
leading-4 which is too small.leading-6 which is too large.The class leading-5 sets the line height to 1.25, which is slightly more than normal spacing.
Fill both blanks to create a paragraph with font size large and line height 1.75 using Tailwind CSS.
<p class="text-[1] [2]">This paragraph has larger text and comfortable line spacing.</p>
text-xl which is extra large font size, not requested.leading-5 which is smaller line height.The class text-lg sets a large font size, and leading-7 sets line height to 1.75 for good readability.
Fill all three blanks to create a heading with extra large font, line height 1, and bold weight using Tailwind CSS.
<h1 class="text-[1] [2] font-[3]">Important Heading</h1>
leading-7 which is too large line height.font-light or missing font weight.text-xl sets extra large font size, leading-none sets line height to 1 (no extra space), and font-bold makes the text bold.