Build an accessible dashboard
Assemble a responsive dashboard with cards, a table, a modal and keyboard-friendly navigation.
What you will be able to do
- Use one main landmark and a labelled navigation.
- Give every metric a heading and a value.
- Make the table responsive and scope its headers.
- Test with the keyboard before calling it done.
In plain English
A dashboard is a composition exercise. Lay out a sidebar and main area, use cards for metrics and a responsive table for recent activity. The accessibility work is in the details: landmarks, labels, focus states and headings.
<div class="container-fluid">
<div class="row min-vh-100">
<aside class="col-12 col-md-3 col-lg-2 bg-body-tertiary p-3">
<nav aria-label="Dashboard"><ul class="nav flex-column"><li class="nav-item"><a class="nav-link active" href="#">Overview</a></li></ul></nav>
</aside>
<main class="col-12 col-md-9 col-lg-10 p-4">
<h1 class="h3 mb-4">Overview</h1>
<div class="row g-3 mb-4">
<div class="col-12 col-md-4"><div class="card p-3"><h2 class="h6 text-body-secondary">Learners</h2><p class="display-6 mb-0">1,204</p></div></div>
<div class="col-12 col-md-4"><div class="card p-3"><h2 class="h6 text-body-secondary">Certificates</h2><p class="display-6 mb-0">318</p></div></div>
<div class="col-12 col-md-4"><div class="card p-3"><h2 class="h6 text-body-secondary">Pass rate</h2><p class="display-6 mb-0">84%</p></div></div>
</div>
</main>
</div>
</div>Your turn
MediumAdd a recent activity table
Add a table with a scoped header row and two data rows below the metric cards.
HTML · starter
<table class="table">Check your understanding before moving on.
Knowledge checkQuestion 1
How many main landmarks should a dashboard page have?
Select an answer to continue
Study tools
Make it yours.
Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.
Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign inFinished reading?
Lock in what you just learned.
0%
Mark this lesson complete to save your place and move one step closer to the certificate.