title: Bootstrap 4 navbar not collapsing or expanding
body: <p>I am working on teaching myself web development, and I thought what a better way than to start my own personal web page. </p>
  
  <p>I have run into an issue working with Bootstrap 4 and the navbar. </p>
  
  <p>I can get the list, and the icon to show up when the window shrinks, but I can't get it to expand, or toggle collapse. I've even copied and pasted some code from the bootstrap documentation to see what I'm doing wrong and even then it doesn't work. </p>
  
  <p>I've tried on both firefox and chrome, and on both, I am still unable to toggle the collapse with the icon button. </p>
  
  <p>Here's the code: </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 lang="en"&gt;
  
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="description" content="Heath's Personal Website"&gt;
    &lt;meta name="keywords" content="heath, blandford, heath blandford"&gt;
    &lt;meta name="author" content="heath blandford"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  
  
  
    &lt;!--import bootstrap --&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;
    &lt;!-- import google fonts lobster and open sans --&gt;
    &lt;link href="https://fonts.googleapis.com/css?family=Lobster|Open+Sans" rel="stylesheet"&gt;
  
  
  
  &lt;/head&gt;
  
  &lt;nav class="navbar navbar-expand-lg navbar-dark bg-dark"&gt;
    &lt;a class="navbar-brand" href="#"&gt;navbar&lt;/a&gt;
    &lt;!-- Navbar brand yo --&gt;
    &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTop" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation"&gt;
          &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
        &lt;/button&gt;
  
    &lt;div class="collapse navbar-collapse" id="navbarTop"&gt;
      &lt;ul class="navbar-nav mr-auto"&gt;
        &lt;li class="nav-item"&gt;&lt;a class="nav-link" href="#about"&gt;About&lt;/a&gt; &lt;/li&gt;
        &lt;li class="nav-item"&gt;&lt;a class="nav-link" href="#portfolio"&gt;Services&lt;/a&gt; &lt;/li&gt;
        &lt;li class="nav-item"&gt;&lt;a class="nav-link" href="#contact"&gt;Contact&lt;/a&gt; &lt;/li&gt;
        &lt;li class="nav-item"&gt;&lt;a class="nav-link" href="#social"&gt;Social Media&lt;/a&gt; &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  
  &lt;body&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>