0
0
Bootsrapmarkup~10 mins

Border utilities in Bootsrap - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a border to the div using Bootstrap.

Bootsrap
<div class="[1]">This div has a border.</div>
Drag options to blanks, or click blank then click option'
Aborder-0
Bno-border
Cborder
Dborderless
Attempts:
3 left
💡 Hint
Common Mistakes
Using classes like 'border-0' which removes borders.
Using non-existent classes like 'no-border' or 'borderless'.
2fill in blank
medium

Complete the code to add a top border only using Bootstrap.

Bootsrap
<div class="[1]">This div has a top border.</div>
Drag options to blanks, or click blank then click option'
Aborder-top
Bborder-right
Cborder-left
Dborder-bottom
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'border-bottom' or other sides instead of 'border-top'.
3fill in blank
hard

Fix the error in the code to remove all borders from the button using Bootstrap.

Bootsrap
<button class="btn btn-primary [1]">Click me</button>
Drag options to blanks, or click blank then click option'
Aborder
Bborder-0
Cno-border
Dborder-none
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'border' which adds a border instead of removing it.
Using invalid classes that do not exist in Bootstrap.
4fill in blank
hard

Fill both blanks to add a left border and make it thicker using Bootstrap.

Bootsrap
<div class="[1] [2]">Thick left border</div>
Drag options to blanks, or click blank then click option'
Aborder-start
Bborder-top
Cborder-3
Dborder-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'border-top' instead of 'border-start'.
Using 'border-1' which is thinner than 'border-3'.
5fill in blank
hard

Fill all three blanks to add a red border on the bottom with medium thickness using Bootstrap.

Bootsrap
<div class="[1] [2] [3]">Red bottom border</div>
Drag options to blanks, or click blank then click option'
Aborder-bottom
Bborder-danger
Cborder-2
Dborder-primary
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'border-primary' which is blue instead of red.
Using 'border-3' which is thicker than medium thickness.