If you want the entire header to be a link, that is the correct way to do it (at least in modern HTML5 browsers). If you want your <h1>
to be the full width of <header>
then add
h1 {
width: 100%
}
to your CSS (though you should add an id or class to the h1 and select through that, better than a general h1
).