0
0
Bootsrapmarkup~20 mins

Float and clear utilities in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Float and Clear Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Bootstrap float utilities
Which Bootstrap class will float an element to the right on all screen sizes?
Afloat-end
Bfloat-right
Cfloat-sm-end
Dfloat-left
Attempts:
2 left
💡 Hint
Bootstrap 5 replaced float-right with a new naming convention.
📝 Syntax
intermediate
2:00remaining
Correct usage of clear utility classes
Which class will clear floats on all screen sizes in Bootstrap 5?
Aclear-float
Bclear-fix
Cclearfix
Dclear
Attempts:
2 left
💡 Hint
Bootstrap 5 uses a specific class to clear floats.
rendering
advanced
3:00remaining
Visual effect of float and clear utilities
Given two div elements inside a container, the first with class float-start and the second with class clearfix, what will be the visual layout?
Bootsrap
<div class="container">
  <div class="float-start">Box 1</div>
  <div class="clearfix">Box 2</div>
</div>
ABox 1 floats left, Box 2 appears beside Box 1, container height collapses
BBox 1 floats left, Box 2 appears below Box 1, container height includes both boxes
CBoth boxes appear side by side floated left, container height collapses
DBox 1 and Box 2 both float left, container height includes only Box 1
Attempts:
2 left
💡 Hint
Clearfix forces the next element to clear previous floats.
selector
advanced
2:00remaining
Responsive float utility classes
Which Bootstrap class floats an element to the right only on medium (md) and larger screens?
Afloat-lg-end
Bfloat-right-md
Cfloat-end-md
Dfloat-md-end
Attempts:
2 left
💡 Hint
Bootstrap uses breakpoint prefixes before the utility name.
accessibility
expert
3:00remaining
Accessibility impact of float utilities
What is a potential accessibility concern when using float utilities to reorder content visually without changing the HTML order?
AScreen readers may read content in the original HTML order, causing confusion if visual order differs
BFloat utilities automatically update the tab order to match visual order
CUsing float utilities disables keyboard navigation on floated elements
DFloat utilities add ARIA roles that override semantic HTML
Attempts:
2 left
💡 Hint
Visual order and DOM order can differ with floats.