Middle
Are you familiar with the concept of breadcrumbs? What HTML tags would you use to implement this component?
sobes.tech AI
Answer from AI
"Breadcrumbs" are a navigation element that shows the user's path within a website or application.
To implement such a component in HTML, the following are usually used:
<nav>with the attributearia-label="breadcrumb"to denote the navigation area.- Inside — an ordered list
<ol>, where each<li>element represents a navigation level. - Links inside
<li>are formatted with the<a>tag, and the current (last) element is without a link or with the attributearia-current="page".
Example:
<nav aria-label="breadcrumb">
<ol>
<li><a href="/home">Home</a></li>
<li><a href="/category">Category</a></li>
<li aria-current="page">Current Page</li>
</ol>
</nav>