Want to make a multi page navigation menu "HTML, JS, jQuery, Bootstrap" : <p>Hello i have been looking for a answer with no luck.</p>

<p>Im looking for a way to clean up my code by having a navigation bar that i can add to other pages with ease. </p>

<p>I have been trying hard to get this right but whitout luck. Hope i can get an answer here.</p>

<p>Im using the Bootstrap library and would be wonderful if someone out there would help me out.</p>

<p>HTML code you will find below.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html class="no-js" lang="en"&gt;
    &lt;head&gt;
        &lt;title&gt;Bootstrap 4 Layout&lt;/title&gt;
        &lt;meta http-equiv="x-ua-compatible" content="ie=edge"&gt;
	    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;

        &lt;link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,800"&gt;
        &lt;link rel='stylesheet' href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"&gt;
        &lt;link rel="stylesheet" href="/css/bootstrap.css"&gt;
        &lt;link rel="stylesheet" href="/css/styles.css"&gt;
    &lt;/head&gt;

    &lt;body&gt;
        
        &lt;!--Main Menu--&gt;
        &lt;div class="container"&gt;
            &lt;nav class="navbar navbar-expand-lg navbar-dark bg-primary"&gt;
                &lt;a class="navbar-brand" href="#"&gt;CompanyName&lt;/a&gt;
        
                   &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"&gt;
                   &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
                     &lt;/button&gt;
        
                  &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
        
                    &lt;ul class="navbar-nav ml-auto"&gt;
                        &lt;li class="nav-item"&gt;
                            &lt;a class="nav-link" href="index.html"&gt;Home&lt;/a&gt;
                        &lt;/li&gt;
                        &lt;li class="nav-item"&gt;
                            &lt;a class="nav-link" href="#"&gt;About&lt;/a&gt;
                        &lt;/li&gt;
                        &lt;li class="nav-item dropdown"&gt;
                            &lt;a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" data-toggle="dropdown"&gt;
                                Products
                            &lt;/a&gt;
                            &lt;div class="dropdown-menu"&gt;
                                &lt;a class="dropdown-item" href="#"&gt;Product 1&lt;/a&gt;
                                &lt;a class="dropdown-item" href="#"&gt;Product 2&lt;/a&gt;
                                &lt;div class="dropdown-divider"&gt;&lt;/div&gt;
                                &lt;a class="dropdown-item" href="#"&gt;Another Product&lt;/a&gt;
                            &lt;/div&gt;
                        &lt;/li&gt;
                        &lt;li class="nav-item"&gt;
                            &lt;a class="nav-link" href="#"&gt;Contact&lt;/a&gt;
                        &lt;/li&gt;
                    &lt;/ul&gt;
                &lt;/div&gt;
            &lt;/nav&gt;

                    &lt;!--Futured posts--&gt;
                    &lt;div class="jumbotron"&gt;
                        &lt;h1 class="display-4"&gt;Simple. Elegant. Awesome.&lt;/h1&gt;
                        &lt;p class="lead"&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. &lt;/p&gt;
                    
                        &lt;p class="lead"&gt;
                            &lt;a class="btn btn-primary btn-lg" href="#" role="button"&gt;Learn more&lt;/a&gt;
                        &lt;/p&gt;
                    &lt;/div&gt;

                    &lt;!--Roster Cards--&gt;
                    &lt;div class="row"&gt;
                        &lt;div class="col-sm-12 col-md-4"&gt;
                            &lt;div class="card mb-4"&gt;
                                &lt;div class="card-body text-center"&gt;
                                    &lt;h5 class="card-title"&gt;Card title&lt;/h5&gt;
                                    &lt;p class="card-text"&gt;Some quick example text to build on the card title&lt;/p&gt;
                                    &lt;a href="#" class="card-link"&gt;Another link&lt;/a&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="col-sm-12 col-md-4"&gt;
                            &lt;div class="card mb-4"&gt;
                                &lt;div class="card-body text-center"&gt;
                                    &lt;h5 class="card-title"&gt;Card title&lt;/h5&gt;
                                    &lt;p class="card-text"&gt;Some quick example text to build on the card title&lt;/p&gt;
                                    &lt;a href="#" class="card-link"&gt;Another link&lt;/a&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="col-sm-12 col-md-4"&gt;
                            &lt;div class="card mb-4"&gt;
                                &lt;div class="card-body text-center"&gt;
                                    &lt;h5 class="card-title"&gt;Card title&lt;/h5&gt;
                                    &lt;p class="card-text"&gt;Some quick example text to build on the card title&lt;/p&gt;
                                    &lt;a href="#" class="card-link"&gt;Another link&lt;/a&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="row mt-sm-4 mt-md-0"&gt;
                        &lt;div class="col-sm-12 col-md-8 text-sm-center text-md-left"&gt;
                            &lt;h3&gt;An important heading&lt;/h3&gt;
                            &lt;p class="lead"&gt;A sort of important subheading can go here, which is larger and gray.&lt;/p&gt;
                    
                            &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&lt;/p&gt;
                            &lt;p&gt;Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&lt;/p&gt;
                        &lt;/div&gt;
                    
                        &lt;div class="col-sm-12 col-md-4"&gt;
                            &lt;h3 class="mb-4"&gt;Secondary Menu&lt;/h3&gt;
                    
                            &lt;ul class="nav flex-column nav-pills"&gt;
                                &lt;li class="nav-item"&gt;
                                    &lt;a class="nav-link active" href="#"&gt;Active&lt;/a&gt;
                                &lt;/li&gt;
                                &lt;li class="nav-item"&gt;
                                    &lt;a class="nav-link" href="#"&gt;Link&lt;/a&gt;
                                &lt;/li&gt;
                                &lt;li class="nav-item"&gt;
                                    &lt;a class="nav-link" href="#"&gt;Link&lt;/a&gt;
                                &lt;/li&gt;
                                &lt;li class="nav-item"&gt;
                                    &lt;a class="nav-link disabled" href="#"&gt;Disabled&lt;/a&gt;
                                &lt;/li&gt;
                            &lt;/ul&gt;
                        &lt;/div&gt;
                        
                    &lt;/div&gt;
                    
                &lt;/div&gt;
                
        &lt;script src="/js/jquery.min.js"&gt;&lt;/script&gt;
        &lt;script src="/js/popper.min.js"&gt;&lt;/script&gt;
        &lt;script src="/js/bootstrap.min.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>
