Check out example codes for "html navigation bar". It will help you in understanding the concepts better.

Code Example 1

<!-- How to create a navigation bar:
 This is the html -->
<body>
<ul class="topnav">
  <!-- Put the class="active" in the page you are coding in
 (e.g. in the Home.html file put the class="active") -->
  <li><a class="active" href="Home.html">Home</a></li>
  <li><a href="Page1.html">Page1</a></li>
  <li><a href="Page2.html">Page2</a></li>
  <li class="right" ><a href="About.html">About</a></li>
</ul>
</body>

<!-- This is the css
 (have a play with the colours and features!)-->
ul.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  font-family: arial;
  text-align: left;
  width: 100%;
  position: sticky;
  top: 0;
}
ul.topnav li {float: left;}
ul.topnav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  float: left;
  font-size: 17px;
  border-right: 1px solid #bbb;
}
ul.topnav li a:hover:not(.active) {
	background-color: #ddd;
    color: black;
}
ul.topnav li a.active {
	background-color: #4CAF50;
}
ul.topnav li.right {
	float: right;
}
@media screen and (max-width: 720px) {
  ul.topnav li{
	  width: 100%;
  }
  ul.topnav a{
	  width: 100%;
  }
}

<!-- hope this helps! -->

Code Example 2

<div class="topnav">
  <a class="active" href="#home">Home</a>
  
<a href="#news">News</a>
  <a href="#contact">Contact</a>
  
<a href="#about">About</a>
</div>

Code Example 3

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;

    overflow: 
hidden;
  background-color: #333;
}

li {
  
float: left;
}


li a {
  display: block;
  
color: white;
  text-align: center;
  
padding: 14px 16px;
  text-decoration: none;
}


/* Change the link color to #111 (black) on hover */
li a:hover {
  background-color: 
#111;
}

Code Example 4

<nav>Navigation bar content</nav>

Code Example 5

<ul>

 
<li><a href="default.asp">Home</a></li>

 
<li><a href="news.asp">News</a></li>

 
<li><a href="contact.asp">Contact</a></li>

 
<li><a href="about.asp">About</a></li>

</ul>

Code Example 6

/* 
  Add a black background color to the top navigation */
.topnav {
  background-color: #333;

    overflow: hidden;
}

/* 
Style the links inside the navigation bar */
.topnav a {
  
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;

    
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {

    
  background-color: #ddd;
  color: black;
}

/* Add 
  a color to the active/current link */
.topnav 
  a.active {
  background-color: #4CAF50;
  color: white;
}

Learn ReactJs, React Native from akashmittal.com