<!DOCTYPE html>
<html lang="en">
<head>
<link href=
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity=
"sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous" />
<script src=
"https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity=
"sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous">
</script>
</head>
<body>
<div class="row">
<div class="col-4">
<nav id="nested-nav" class="h-100 fixed-top"
style="width:30%">
<nav class="nav nav-pills flex-column">
<a class="nav-link" href="#CS">CS</a>
<nav class="nav nav-pills flex-column">
<a class="nav-link ms-3 my-1" href="#CS-1">CS-1</a>
<a class="nav-link ms-3 my-1" href="#CS-2">CS-2</a>
</nav>
<a class="nav-link" href="#IT">IT</a>
<a class="nav-link" href="#AI">AI</a>
<nav class="nav nav-pills flex-column">
<a class="nav-link ms-3 my-1" href="#AI-1">AI-1</a>
<a class="nav-link ms-3 my-1" href="#AI-2">AI-2</a>
</nav>
</nav>
</nav>
</div>
<div class="col-8">
<h1 class="text-success">GeeksforGeeks</h1>
<strong>Scrollspy in Bootstrap 5 via Javascript</strong>
<br />
<div>
<div id="CS">
<h4>CS</h4>
<p>
GeeksforGeeks is a one-stop destination for
Computer Science students. Computer Science
is a huge field, thus students must select
a suitable platform that can meet all their
needs, including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.GeeksforGeeks is a one-stop destination
for Computer Science students.Computer Science
is a huge field, thus students must select a
suitable platform that can meet all their
needs,including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.
</p>
</div>
<div id="CS-1">
<h5>CS-1</h5>
<p>
GeeksforGeeks is a one-stop destination for
Computer Science students. Computer Science
is a huge field, thus students must select
a suitable platform that can meet all their
needs, including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.GeeksforGeeks is a one-stop destination
for Computer Science students.Computer Science
is a huge field, thus students must select a
suitable platform that can meet all their
needs,including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.
</p>
</div>
<div id="CS-2">
<h5>CS-2</h5>
<p>
GeeksforGeeks is a one-stop destination for
Computer Science students. Computer Science
is a huge field, thus students must select
a suitable platform that can meet all their
needs, including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.GeeksforGeeks is a one-stop destination
for Computer Science students.Computer Science
is a huge field, thus students must select a
suitable platform that can meet all their
needs,including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.
</p>
</div>
<div id="IT">IT
<h4>IT</h4>
<p>
GeeksforGeeks is a one-stop destination for
Computer Science students. Computer Science
is a huge field, thus students must select
a suitable platform that can meet all their
needs, including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.GeeksforGeeks is a one-stop destination
for Computer Science students.Computer Science
is a huge field, thus students must select a
suitable platform that can meet all their
needs,including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.
</p>
</div>
<div id="AI">
<h4>AI</h4>
<p>
GeeksforGeeks is a one-stop destination for
Computer Science students. Computer Science
is a huge field, thus students must select
a suitable platform that can meet all their
needs, including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.GeeksforGeeks is a one-stop destination
for Computer Science students.Computer Science
is a huge field, thus students must select a
suitable platform that can meet all their
needs,including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.
</p>
</div>
<div id="AI-1">
<h5>AI-1</h5>
<p>
GeeksforGeeks is a one-stop destination for
Computer Science students. Computer Science
is a huge field, thus students must select
a suitable platform that can meet all their
needs, including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.GeeksforGeeks is a one-stop destination
for Computer Science students.Computer Science
is a huge field, thus students must select a
suitable platform that can meet all their
needs,including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.
</p>
</div>
<div id="AI-2">
<h5>AI-2</h5>
<p>
GeeksforGeeks is a one-stop destination for
Computer Science students. Computer Science
is a huge field, thus students must select
a suitable platform that can meet all their
needs, including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.GeeksforGeeks is a one-stop destination
for Computer Science students.Computer Science
is a huge field, thus students must select a
suitable platform that can meet all their
needs,including Tutorials & Courses, Placement
Preparation, and Interview Experiences, among
others.
</p>
</div>
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
var scrollSpy = new bootstrap.ScrollSpy(document.body, {
target: '#nested-nav'
})
});
</script>
</body>
</html>