I am looking to create a basic 6-page website. Here is the code for my main page:
<html>
<style>
.ali{
width:170px;
text-align:center;
}
footer{
background:#333;
color:#eee;
font-size:11px;
padding-top: 25px;
padding-bottom: 25px;
text-align:center;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<body>
<div class="container" id="main">
<div class="navbar navbar-inverse">
<ul class="nav navbar-nav">
<li class="ali"><a href="page1.html">Page 1</a></li>
<li class="ali"><a href="#">Page 2</a></li>
<li class="ali"><a href="#">Page 3</a></li>
<li class="ali"><a href="#">Page 4</a></li>
<li class="ali"><a href="#">Page 5</a></li>
<li class="ali"><a href="#">Page 6</a></li>
</ul>
</div>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0"class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="http://cdn.desktopwallpapers4.me/wallpapers/photography/1920x1080/3/24275-world-through-a-lens-1920x1080-photography-wallpaper.jpg" alt="Lens">
</div>
<div class="item">
<img src="http://newartcolorz.com/images/lens-wallpaper/kartandtinki1_lens-wallpaper_03.jpg" alt="lesis">
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div> <!-- end of carousel inner -->
</div> <!-- end of carousel -->
<footer>
<div class="container">
<div class="row">
<div class="col-lg-12">
<hr></hr>
<h6>Copyright © 2015 {Author}</h6>
</div>
</div>
</div>
</footer>
</body>
I have set up a navigation bar for easy navigation between web pages on the site. However, I now want to replace only the carousel section with each new page when a navbar item is clicked. How can I achieve this without fully reloading the page? Should I consider using bootstrap tabs instead of a navbar?