0
0
Bootsrapmarkup~10 mins

Button sizes 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 create a small Bootstrap button.

Bootsrap
<button type="button" class="btn btn-primary btn-[1]">Small Button</button>
Drag options to blanks, or click blank then click option'
Alg
Bsm
Cmd
Dxl
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'btn-md' which is not a valid Bootstrap size class.
Using 'btn-xl' which does not exist in Bootstrap button sizes.
2fill in blank
medium

Complete the code to create a large Bootstrap button.

Bootsrap
<button type="button" class="btn btn-success btn-[1]">Large Button</button>
Drag options to blanks, or click blank then click option'
Asm
Bmd
Clg
Dxs
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'btn-xs' which is not a valid Bootstrap button size.
Using 'btn-md' which is the default size and does not change button size.
3fill in blank
hard

Fix the error in the button size class to make the button medium size.

Bootsrap
<button type="button" class="btn btn-danger btn-[1]">Medium Button</button>
Drag options to blanks, or click blank then click option'
Amd
Bsm
Clg
Dxs
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'btn-xs' which is not a valid Bootstrap size.
Using 'btn-sm' or 'btn-lg' which changes the size to small or large.
4fill in blank
hard

Fill both blanks to create a large, secondary Bootstrap button with the correct size class.

Bootsrap
<button type="button" class="btn btn-[1] btn-[2]">Large Secondary Button</button>
Drag options to blanks, or click blank then click option'
Asecondary
Blg
Cprimary
Dsm
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of color and size classes.
Using 'primary' instead of 'secondary' for the color.
5fill in blank
hard

Fill all three blanks to create a small, outline-danger Bootstrap button with the correct classes.

Bootsrap
<button type="button" class="btn btn-[1] btn-outline-[2] btn-[3]">Small Outline Danger Button</button>
Drag options to blanks, or click blank then click option'
Abtn
Bdanger
Csm
Dprimary
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'btn-outline-primary' instead of 'btn-outline-danger'.
Forgetting the base 'btn' class.
Using 'lg' instead of 'sm' for size.