bi class prefix followed by the icon name.The correct way to use a Bootstrap icon is with an <i> or <span> tag and the classes bi and the icon name, e.g., bi-house. Option C uses this correct syntax.
Bootstrap icons require two classes: bi as the base class and bi-alarm for the specific icon. Option A correctly includes both.
<button type="button">[icon here]</button>
Option D adds an aria-label to the button element, giving screen readers a clear description of the button's purpose. This is the best practice for accessibility.
<button class="btn"><i class="bi bi-star"></i> Favorite</button>
Option A uses Flexbox with align-items: center to vertically center the icon and text, and gap to add space between them. This is the modern and correct approach.
Icons without descriptive text or ARIA labels are ignored by screen readers, which can confuse users relying on assistive technology. Option B correctly identifies this concern.
