Is either:
<a href='#'><h1>text here</h1></a>
or
<h1><a href='#'>text here</a></h1>
‘correct’. Is there any benefit of using the first one, it seems more logical to me. Perhaps from an SEO point?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
is correct, as HTML does not allow a block element (
<h1>) within an inline element (<a>) (src). your first example will fail validation.