star-fill in a button?bi class prefix inside an <i> tag.Bootstrap icons are included by adding bi and the icon name as classes inside an <i> tag. Option C uses <i class="bi bi-star-fill"></i>, which is correct. Other options use incorrect tags or class names.
<svg class="bi bi-custom-icon"><use xlink:href="#custom-icon" /></svg>
<svg class="bi bi-custom-icon"><use xlink:href="#custom-icon" /></svg>
href instead of xlink:href.The xlink:href attribute is deprecated in SVG 2. Modern browsers expect href instead. Using xlink:href may cause syntax or rendering errors. Option A correctly identifies this issue.
custom-icon is not defined anywhere in the HTML?<svg class="bi"><use href="#custom-icon" /></svg>
<svg class="bi"><use href="#custom-icon" /></svg>
use references must match an existing symbol in the document.If the referenced SVG symbol is missing, the use element renders nothing visible. No error or placeholder is shown. Option D is correct.
bi-star inside buttons?bi and the icon name.Option B selects any element with both bi and bi-star classes inside a button. This matches Bootstrap icon usage. Option B looks for buttons with class bi-star, which is incorrect. Option B selects button inside elements with bi-star. Option B selects direct children only, which may miss nested icons.
Option A correctly uses role="img" and aria-label on the icon element to describe it to screen readers. Option A hides the icon from screen readers and relies on separate text, which can be less clear. Option A ignores accessibility. Option A is unrelated to icon accessibility.
