Are both ... and ... valid HTML, or is only one correct
...
In pre HTML 5 this one
..
will not validate. You can use it in HTML 5. However, i would use this:
unless you need to add more than < h1 > inside the < a >