Pagination Indicators and Tab Lists
You'll learn how to make carousel pagination dots accessible by choosing the right semantic structure and ARIA attributes.
What Are Pagination Indicators?
Pagination indicators are those clickable dots or numbers at the bottom of a carousel that show which slide you're on and let you jump to a specific slide. Think of them like chapter markers in a video player—they provide both status information and navigation.
Two Main Approaches
Using role='tablist'
When each slide is like a different "view" of content, you can treat pagination dots as tabs:
<div class="carousel">
<!-- Slide content here -->
<div role="tablist" aria-label="Carousel slides">
<button role="tab" aria-selected="true" aria-controls="slide-1">
<span class="visually-hidden">Slide 1</span>
</button>
<button role="tab" aria-selected="false" aria-controls="slide-2">
<span class="visually-hidden">Slide 2</span>
</button>
<button role="tab" aria-selected="false" aria-controls="slide-3">
<span class="visually-hidden">Slide 3</span>
</button>
</div>
</div>
Using aria-current with Buttons
For simpler implementations, use semantic buttons with aria-current to indicate the active slide:
<nav aria-label="Carousel pagination">
<button aria-current="true">
<span class="visually-hidden">Slide 1 (current)</span>
</button>
<button aria-current="false">
<span class="visually-hidden">Go to slide 2</span>
</button>
<button aria-current="false">
<span class="visually-hidden">Go to slide 3</span>
</button>
</nav>
Why This Matters
Without proper semantics, screen reader users only hear "button, button, button" with no context about what these controls do or which slide is active. Adding labels and current-state indicators transforms meaningless dots into useful navigation.
Key Takeaway: Use either role='tablist' with aria-selected or regular buttons with aria-current for carousel pagination, and always include visually hidden text labels to describe each indicator's purpose.