Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add the Bootstrap Icons CSS link in the HTML head.
Bootsrap
<head> <link rel="stylesheet" href="[1]"> </head>
Attempts:
3 left
💡 Hint
Common Mistakes
Using the Bootstrap CSS link instead of Bootstrap Icons CSS.
Using Font Awesome or Google Fonts links by mistake.
✗ Incorrect
The Bootstrap Icons library is added by linking its CSS file from the official CDN URL in the head section.
2fill in blank
mediumComplete the code to add a Bootstrap icon for a house inside the body.
Bootsrap
<body> <i class="bi bi-[1]"></i> </body>
Attempts:
3 left
💡 Hint
Common Mistakes
Using icon names that do not exist or are unrelated.
Forgetting the 'bi-' prefix in the class.
✗ Incorrect
The 'house' icon is used by adding the class 'bi-house' inside an element.
3fill in blank
hardFix the error in the icon class to correctly show a Bootstrap icon for a heart.
Bootsrap
<i class="[1]"></i>
Attempts:
3 left
💡 Hint
Common Mistakes
Using icon class names without the 'bi-' prefix.
Using Font Awesome classes like 'fa-heart'.
✗ Incorrect
Bootstrap Icons require the 'bi' prefix in the class name, so 'bi-heart-fill' is correct.
4fill in blank
hardFill both blanks to correctly add the Bootstrap Icons CSS link with integrity and crossorigin attributes.
Bootsrap
<link rel="stylesheet" href="[1]" integrity="[2]" crossorigin="anonymous">
Attempts:
3 left
💡 Hint
Common Mistakes
Using Bootstrap CSS URL instead of Bootstrap Icons CSS.
Using incorrect or missing integrity hashes.
✗ Incorrect
The Bootstrap Icons CSS link uses the official CDN URL and the correct integrity hash for security.
5fill in blank
hardFill all three blanks to create a button with a Bootstrap icon and accessible label.
Bootsrap
<button type="button" aria-label="[1]"> <i class="bi bi-[2]" aria-hidden="true"></i> [3] </button>
Attempts:
3 left
💡 Hint
Common Mistakes
Not adding aria-label for accessibility.
Using icon names that do not match the button action.
Missing visible text for screen readers.
✗ Incorrect
The button has an aria-label 'Close', uses the 'x-circle' icon, and shows the text 'Close' for clarity.
