The class mt-3 adds margin to the top only. mb-3 adds margin to the bottom, mx-3 adds margin left and right, and p-3 adds padding all around.
px-4 adds padding on both left and right sides. pl-4 adds padding only on the left, py-4 adds padding top and bottom, and p-4 adds padding all around.
<div> with class m-2 p-3. What will you see compared to a <div> with no spacing classes?The class m-2 adds margin on all sides, and p-3 adds padding on all sides. This creates visible space outside and inside the element's border.
The class mb-md-5 applies margin-bottom of 5 units starting at medium screen size. mb-5 applies margin-bottom on all screen sizes. The other options are invalid syntax.
Too much or inconsistent spacing can disrupt the logical order of content, making it harder for keyboard users and screen readers to follow. Proper spacing helps maintain clear structure and flow.