title: Header inside Link or Link inside Header in HTML markup?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7023512/which-is-more-correct-h1a-a-h1-or-ah1-h1-a">Which is more correct: &lt;h1&gt;&lt;a&gt;..&lt;/a&gt;&lt;/h1&gt; OR &lt;a&gt;&lt;h1&gt;..&lt;/h1&gt;&lt;/a&gt;</a><br>
    <a href="https://stackoverflow.com/questions/9760074/semantically-which-is-more-correct-a-in-h2-or-h2-in-a">Semantically, which is more correct: a in h2, or h2 in a?</a>  </p>
  </blockquote>
  
  
  
  <p>This is a simple question about HTML. What is the right/most preferable way to put a link in a header, paragraph or another HTML element?</p>
  
  <p>This way:</p>
  
  <p><code>&lt;h2&gt;&lt;a href=""&gt;Some Title&lt;/a&gt;&lt;/h2&gt;</code></p>
  
  <p>Or this way:</p>
  
  <p><code>&lt;a href=""&gt;&lt;h2&gt;Some Title&lt;/h2&gt;&lt;/a&gt;</code></p>