Complete the code to include a Bootstrap SVG icon for a star.
<svg class="bi" width="32" height="32" fill="currentColor" aria-label="Star icon"> <use xlink:href="[1]"></use> </svg>
The <use> element references the star icon by its ID #star in the Bootstrap SVG sprite.
Complete the code to add an accessible label to the SVG icon.
<svg class="bi" width="24" height="24" fill="currentColor" role="img" [1]> <use xlink:href="#heart"></use> </svg>
alt attribute on SVG, which is invalid.aria-hidden="true" hides the icon from screen readers.Using aria-label provides an accessible name for screen readers describing the icon.
Fix the error in the SVG icon usage by completing the missing attribute.
<svg class="bi" width="16" height="16" fill="currentColor" [1]> <use xlink:href="#alarm"></use> </svg>
alt attribute on SVG, which is invalid.The role="img" attribute tells assistive technologies this SVG is an image, improving accessibility.
Fill the three blanks to create a red colored Bootstrap SVG icon with an accessible label.
<svg class="bi" width="40" height="40" fill="[1]" role="img" aria-label="[2] icon"> <use xlink:href="#[3]"></use> </svg>
The fill attribute sets the icon color to red. The aria-label describes the icon as 'heart'. The xlink:href references the 'heart' icon ID.
Fill all three blanks to create a responsive Bootstrap SVG icon with a blue fill and an accessible label for a 'check' icon.
<svg class="bi" width="[1]" height="[2]" fill="[3]" role="img" aria-label="Check icon"> <use xlink:href="#check"></use> </svg>
Setting width and height to 32 makes the icon larger and responsive. The fill color 'blue' colors the icon. The aria-label describes the icon for accessibility.
