Source

Gurasa gurasa

Nuna wurin shafin na yanzu a cikin tsarin kewayawa wanda ke ƙara masu rarraba ta atomatik ta CSS.

Dubawa

Ana ƙara masu rarraba ta atomatik a cikin CSS ta hanyar ::beforeda 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>

Dama

Tun da gurasar burodi ta ba da kewayawa, yana da kyau a ƙara lakabi mai ma'ana kamar aria-label="breadcrumb"bayyana nau'in kewayawa da aka bayar a cikin <nav>kashi, da kuma amfani da aria-current="page"abu na ƙarshe na saitin don nuna cewa yana wakiltar shafin na yanzu.

Don ƙarin bayani, duba Ayyukan Rubuce-rubucen WAI-ARIA don tsarin biredi .