Complete the code to apply a responsive text size that is small on mobile and larger on medium screens.
<p class="text-sm [1]">This text changes size on different screens.</p>
sm:text-lg which applies on small screens, not medium.text-lg which applies everywhere.The class md:text-lg sets the text size to large starting at medium screen sizes, making the typography responsive.
Complete the code to make the heading text size scale from medium on small screens to extra large on large screens.
<h1 class="[1] lg:text-4xl">Welcome to our site</h1>
text-sm which is too small for a heading.text-xl which is larger than medium but not the best base for scaling.The class text-lg sets the base text size to large on small screens, then lg:text-4xl makes it extra large on large screens.
Fix the error in the code to correctly apply responsive font sizes for paragraph text.
<p class="text-base [1]">This paragraph adjusts size on screens.</p>
md:text-2x which is not a valid Tailwind class.The correct Tailwind class is md:text-xl. The option md:text-2x is invalid and will cause no effect.
Fill both blanks to create a responsive heading that is medium on small screens and extra large on extra large screens.
<h2 class="[1] [2]">Responsive Heading</h2>
lg:text-4xl instead of xl:text-5xl for the extra large size.The base size text-lg applies on small screens, and xl:text-5xl makes the text extra large on extra large screens.
Fill all three blanks to create a paragraph with small text on mobile, medium on medium screens, and large on large screens.
<p class="[1] [2] [3]">Adaptive paragraph text.</p>
xl:text-xl instead of lg:text-lg for large screens.The classes text-sm, md:text-base, and lg:text-lg set the text size to small by default, medium on medium screens, and large on large screens respectively.