Source

Pen

Endike kote paj aktyèl la nan yon yerachi navigasyon ki otomatikman ajoute separatè atravè CSS.

Apèsi sou lekòl la

Separatè yo otomatikman ajoute nan CSS atravè ::beforeak content.

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item active" aria-current="page">Home</li>
  </ol>
</nav>

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="#">Home</a></li>
    <li class="breadcrumb-item active" aria-current="page">Library</li>
  </ol>
</nav>

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="#">Home</a></li>
    <li class="breadcrumb-item"><a href="#">Library</a></li>
    <li class="breadcrumb-item active" aria-current="page">Data</li>
  </ol>
</nav>

Aksesiblite

Piske breadcrumbs bay yon navigasyon, li se yon bon lide pou ajoute yon etikèt ki gen sans tankou aria-label="breadcrumb"pou dekri kalite navigasyon yo bay nan <nav>eleman an, osi byen ke aplike yon aria-current="page"pou dènye atik nan ansanm pou endike ke li reprezante paj aktyèl la.

Pou plis enfòmasyon, gade WAI-ARIA Authoring Practices pou modèl breadcrumb la .