If You go with code1
heading
you are just able to make it as a link with highlight feature.
But If you go with code2
you will probably able to satisfy some css property as h1 a{ //hover or text decoration}
I will go with second code. ... Both will work.