im new to front-end development and hope i get some clarification on this topic by you guys . I need to build a website where i implement a nav bar and when an element or link in this navbar is clicked it should scroll down to the correct section of the webpage. Its all an onepager.
My question is how to implement a nav bar using bootstrap 5 and/or external css stylesheet alligned to the right side with following elements : About me, Random Facts, Skills, Portfolio, Contact Me where when e.g. Random Facts is clicked it scrolls down to Random facts.
Also i wanted to know what exactly the difference between """ a class="nav-link active" aria-current="page" href="#" """ and standard """a class="nav-link" href="#" """ is.
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Fabian Zaiser</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">About Me</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Random Facts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Skills</a>
</li>
</ul>
</div>
</div>
</nav>
</body>
This i what i have currently. Thank you guys so much in advance.