title: Can I nest button inside another button?
body: <p>This is a problem resulting from trying to keep my html semantics as correct as possible.</p>
  
  <p>I have a parent button that does both a function in the same page, and acts as parent tag for a big container that nests an anchor -- which redirects to another page -- and a div tag that also acts as a parent for another button that is suppose to perform some actions.</p>
  
  <pre><code>&lt;button&gt;
    &lt;div id="the-most-big-container"
      &lt;a href="http://www.RedirectMeToAnotherPage.com"&gt;&lt;/a&gt;
     &lt;div&gt;
       &lt;button&gt; do some action &lt;/button&gt;
     &lt;/div&gt;
    &lt;/div&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>I tried nesting the button, gave it a class and id and none of the properties that I apply to the class and the id get performed on the child button, more  Also the child button gets completely out of the big container and lays itself in the DOM just like it is a complete independent tag not nested by any other tag. </p>
  
  <p><strong>[Update]</strong></p>
  
  <p>Apparently this is  prohibited to nest a button inside another, but furthermore I would like an explanation to why the nested button's behavior being not responsive to the css styles, and how exactly it is laying itself regarding the DOM now, is it now a complete independent tag by itself or what ?</p>
  
  <p>Also now I will be forced to change the parent button tag into any other tag so that I can nest child buttons inside. I would like a suggestion for a substitute tag for the parent button tag 
  ex: I could change the parent button into a div tag, </p>
  
  <p>but I need a tag that would be more descriptive semantically (something other than just a div),I had that parent button in the first place to act as a toggle button so that when I click it it displays and hides the most-big-container-div.</p>