C. No error; this is correct Bootstrap card structure
D. Header must be inside card-body
Solution
Step 1: Check container class
The outer div has class card, which is correct.
Step 2: Verify card parts order and nesting
Header, body, and footer are correctly placed as siblings inside the card container.
Final Answer:
No error; this is correct Bootstrap card structure -> Option C
Quick Check:
Proper card structure = No error [OK]
Hint: Card parts are siblings inside div.card [OK]
Common Mistakes:
Thinking footer must come before body
Placing header inside body incorrectly
Forgetting the main card container class
5. You want a card with a header, body, and footer. The footer should have a button aligned to the right. Which Bootstrap classes help achieve this layout inside the footer?
hard
A. card-footer d-flex justify-content-end
B. card-footer text-center
C. card-footer align-items-start
D. card-footer float-right
Solution
Step 1: Use card-footer for footer section
The footer must have the card-footer class to style it as a card footer.
Step 2: Align button right using Flexbox utilities
Bootstrap's d-flex makes the footer a flex container, and justify-content-end pushes content to the right.
Final Answer:
card-footer d-flex justify-content-end -> Option A
Quick Check:
Right aligned footer button = d-flex justify-content-end [OK]
Hint: Use flex and justify-content-end to align right [OK]
Common Mistakes:
Using deprecated float-right class
Using text-center which centers content
Using align-items-start which aligns vertically
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.