Skip to main content

Beginner-Friendly Topic

Take your time - it's perfectly normal to re-read this topic 2-3 times. Try the interactive code editor below to run code yourself. Use the Q&A section to check your understanding before moving on.You've got this!

Lesson 5 of 9

Breadcrumb & Pagination Navigation

Breadcrumbs show the user's position in the site hierarchy (Home > Courses > HTML). Pagination splits large content into numbered pages. Both improve user experience and SEO.

15 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Breadcrumb & Pagination Patterns

Breadcrumbs use an ordered list (<ol>) inside a <nav> because the order matters. The last item should NOT be a link.

Pagination uses rel="prev" and rel="next" to help search engines understand the pagination sequence.

Diagram
Loading diagram…

Breadcrumbs and pagination guide users and search engines across large sites

Breadcrumb & Pagination Example

Breadcrumb & Pagination Example
<!DOCTYPE html>
<html>
<head>
  <style>
    .breadcrumb { list-style:none; display:flex; padding:10px; background:#f4f4f4; }
    .breadcrumb li+li::before { content:"β€Ί"; padding:0 8px; color:#999; }
    .breadcrumb a { color:#229c6b; text-decoration:none; }
    .pagination { display:flex; gap:4px; margin-top:20px; }
    .pagination a { padding:8px 14px; border:1px solid #ddd; text-decoration:none; color:#333; border-radius:4px; }
    .pagination a:hover { background:#229c6b; color:white; }
    .pagination a[aria-current="page"] { background:#229c6b; color:white; }
  </style>
</head>
<body>
  <nav aria-label="Breadcrumb">
    <ol class="breadcrumb">
      <li><a href="/">Home</a></li>
      <li><a href="/courses">Courses</a></li>
      <li aria-current="page">HTML Course</li>
    </ol>
  </nav>
  <h1>HTML Course</h1>
  <nav aria-label="Pagination" class="pagination">
    <a href="?page=1" rel="prev">Prev</a>
    <a href="?page=1">1</a>
    <a href="?page=2" aria-current="page">2</a>
    <a href="?page=3">3</a>
    <a href="?page=3" rel="next">Next</a>
  </nav>
</body>
</html>

Quick Quiz

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/9 done