Source

Breadcrumb

Nuduhake lokasi kaca saiki ing hirarki navigasi sing kanthi otomatis nambah pamisah liwat CSS.

Ringkesan

Separator otomatis ditambahake ing CSS liwat ::beforelan 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>

Aksesibilitas

Wiwit breadcrumbs nyedhiyakake pandhu arah, luwih becik sampeyan nambah label sing migunani kayata aria-label="breadcrumb"kanggo njlèntrèhaké jinis pandhu arah sing disedhiyakake ing <nav>unsur kasebut, uga nglamar aria-current="page"item pungkasan ing set kasebut kanggo nuduhake manawa kaca kasebut nuduhake kaca saiki.

Kanggo informasi luwih lengkap, deleng Praktik Penulisan WAI-ARIA kanggo pola breadcrumb .