DEV Community

Cover image for Day 94/100 Secondary Navigation
Rio Cantre
Rio Cantre

Posted on • Originally published at dev.to

Day 94/100 Secondary Navigation

banner

What is primary vs secondary navigation?

  • The primary navigation system typically contains the most important links and buttons that need to be displayed on every single page of the site.

  • Secondary navigation, or breadcrumb navigation, usually consists of a clickable list of pages or attributes that led to the current page. It can help users understand the extent of the site and also where they are currently.

Why do we call them breadcrumbs?

Think about the story of Hansel and Gretel, where the kids drop breadcrumbs as they walked in the woods so that they would be able to find their way back.

Benefit of using breadcrumbs

  • Breadcrumb navigation provides a lot of benefits for users that come to random pages in a website through direct links or search results.
  • Breadcrumbs also provide a way for a user to quickly jump backward in their navigation of the site.
  • The decision to use breadcrumbs is a judgment call depending on the type, depth, and complexity of your site.

Code Snippets

function cat() {
    function purr()
         return "purrrr!";
} 
console.log(purr()) ;
var meow = function(max) {
var catMessage = "";

for(var i = 0; i < max; i++) {
    catMessage += "meow";
   }
    return catMessage;
   }

cat();
Enter fullscreen mode Exit fullscreen mode

Summary

It's cold outside, making myself warm and contemplating. The view on my window is all white and foggy, brain is fuzzy, now I must have my warm yummy tea in a muggy.
resource

Discussion (0)