title: Child element of parent(s) not shown as child element at all
body: <p>Okay here's the deal, I need to understand why my <code>.login</code> form is not placed inside its parent (<code>header</code> tag) or even another parent div I created just to see if it would go inside a <code>div</code> (<code>.header</code>). I do not understand at all how a child element is getting stuck into a separate class (<code>.home-main-nav-menu</code>). Can someone please tell me what is going on here and how to fix it? Thank you for your time! </p>
  
  <p><a href="https://i.stack.imgur.com/YX825.png" rel="nofollow noreferrer">Review CSS for color map</a></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-js lang-js prettyprint-override"><code>$(document).ready(function(){
      $('.main-ul').children('li').on('click', function() {
       $(this).children('ul').slideToggle('slow');
     });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.home-main-nav-menu{
    border-style: double;
    border-color: cyan;
  }
  .login{
    font-family: Ailerons;
    float: right;
    border-style: double;
    border-color: red;
  }
  .header{
    border-style: double;
    border-color: yellow;
  }
  header{
    border-style: double;
    border-color: blue;
  }
  h1{
    font-family: Ailerons;
    font-size: 100px;
    color: white;
    text-align: center;
    margin-bottom: -25px;
  }
  .main-li-items{
    display: inline-block;
    border-style: double;
    border-color: purple;
    padding-left: 0px;
  }
  .sub-li-items{
    list-style-type: none;
    text-align: left;
    margin-left: -40.5px;
    border-style: double;
    border-color: yellow;
  }
  .main-li-items &gt; ul {
    display: none;
    position: absolute;
    margin-left: -4.1px
  }
  .main-ul{
    border-style: double;
    border-color: green;
    padding-left: 0;
  }
  ul{
    text-align: center;
    position: relative;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;body&gt;
    &lt;div class = "header"&gt;
    &lt;header&gt;
      &lt;h1&gt;Header&lt;/h1&gt;
      &lt;form class = "login"&gt;
        Username &lt;input type = "text" name= "username"&gt;&lt;/br/&gt;
        Password &lt;input type = "text" name ="password"&gt;&lt;br/&gt;
        &lt;input type="submit" name= "submit" value="submit" id = "submit"&gt;
      &lt;/form&gt;
    &lt;/header&gt;
  &lt;/div&gt;
      &lt;nav class = "home-main-nav-menu"&gt;
      &lt;ul class = "main-ul"&gt;
        &lt;li class = "main-li-items"&gt;&lt;a href = "#/"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li class = "main-li-items"&gt;&lt;a href = "#/"&gt;About Me&lt;/a&gt;
          &lt;ul&gt;
            &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;Education&lt;/a&gt;&lt;/li&gt;
            &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;Lessons&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class = "main-li-items"&gt;&lt;a href = "#/"&gt;Blog&lt;/a&gt;&lt;/li&gt;
        &lt;li class = "main-li-items"&gt;&lt;a href = "#/"&gt;Contact&lt;/a&gt;
        &lt;ul&gt;
          &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;Email&lt;/a&gt;&lt;/li&gt;
          &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;Phone&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
        &lt;li class = "main-li-items"&gt;&lt;a href = "#/"&gt;Portfolio&lt;/a&gt;
        &lt;ul&gt;
          &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;Recent&lt;/a&gt;&lt;/li&gt;
          &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;All&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
       &lt;/li&gt;
        &lt;li class = "main-li-items"&gt;&lt;a href = "#/"&gt;Collaborate&lt;/a&gt;
        &lt;ul&gt;
          &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;Now&lt;/a&gt;&lt;/li&gt;
          &lt;li class = "sub-li-items"&gt;&lt;a href = "#/"&gt;Later&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>