Complete the code to add a margin of 4 units to all sides of the div.
<div class="m-[1]">Content</div>
p-4 instead of margin.m-2 which is smaller margin.The class m-4 adds margin of 1rem (4 units) to all sides of the element.
Complete the code to add a horizontal margin of 6 units to the paragraph.
<p class="mx-[1]">Hello world!</p>
my-6 which adds vertical margin instead.The class mx-6 adds margin left and right of 1.5rem (6 units).
Fix the error in the code to add a top margin of 8 units to the section.
<section class="mt-[1]">Section content</section>
mb-8 which adds bottom margin instead.The class mt-8 adds a top margin of 2rem (8 units). Using 8 is correct here.
Fill both blanks to add vertical margin of 10 units and horizontal margin of 4 units to the div.
<div class="[1] [2]">Box</div>
mx-6 instead of mx-4 for horizontal margin.mt-10 alone which only adds top margin.my-10 adds vertical margin (top and bottom) of 2.5rem (10 units), and mx-4 adds horizontal margin (left and right) of 1rem (4 units).
Fill all three blanks to add margin top 12 units, margin right 8 units, and margin bottom 4 units to the article.
<article class="[1] [2] [3]">Content</article>
ml-6 which adds left margin instead of right margin.mb-8 instead of mr-8.mt-12 adds top margin of 3rem (12 units), mr-8 adds right margin of 2rem (8 units), and mb-4 adds bottom margin of 1rem (4 units).