Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add a small Bootstrap icon.
Bootsrap
<i class="bi bi-alarm [1]"></i>
Attempts:
3 left
💡 Hint
Common Mistakes
Using fs-1 or fs-2 which are larger sizes.
Not adding any size class, so icon stays default size.
✗ Incorrect
The class 'fs-6' makes the icon small in Bootstrap's font size scale.
2fill in blank
mediumComplete the code to color the icon red using Bootstrap text color classes.
Bootsrap
<i class="bi bi-heart [1]"></i>
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'text-primary' which is blue.
Using 'text-success' which is green.
✗ Incorrect
The class 'text-danger' applies a red color in Bootstrap.
3fill in blank
hardFix the error in the code to make the icon large and blue.
Bootsrap
<i class="bi bi-star [1] text-primary"></i>
Attempts:
3 left
💡 Hint
Common Mistakes
Using fs-0 or fs-7 which are invalid classes.
Not adding any size class, so icon stays default size.
✗ Incorrect
The class 'fs-5' makes the icon large; fs-0 and fs-7 do not exist in Bootstrap.
4fill in blank
hardFill both blanks to create a medium-sized green icon.
Bootsrap
<i class="bi bi-check-circle [1] [2]"></i>
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'text-danger' which is red instead of green.
Using very large or very small font size classes.
✗ Incorrect
Use 'fs-4' for medium size and 'text-success' for green color in Bootstrap.
5fill in blank
hardFill all three blanks to create a large, blue icon with extra spacing.
Bootsrap
<i class="bi bi-cloud-upload [1] [2] [3]"></i>
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'text-warning' which is yellow instead of blue.
Not adding spacing class, so icon is too close to other elements.
✗ Incorrect
Use 'fs-1' for largest size, 'text-primary' for blue color, and 'me-3' for right margin spacing.
