How to make a breadcrumb in HTML / CSS

Breadcrumbs are the navigation bars at the top of webpages; they allow you to see the hierarchy of a website. Let’s see how a basic breadcrumb is made.​

  1. Create a list (ordered/unordered) in HTML and add a few items; these items should be links:
  1. Give a class to the list and list-items:
  1. Now use CSS to place them in a line. Add a background and adjust basic text styling:
  1. Add separators:
  1. Finalize your breadcrumb:
Our breadcrumb is ready
Copyright ©2024 Educative, Inc. All rights reserved