Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Block level elements should be able to render inside anchor tags #1134
Can not currently render a block-level element inside an
HTML5 spec allows putting block-level elements inside anchors. HTML 4.01 allows block elements inside anchor tags, though it requires additional CSS to make sure it behaves properly--rendering this way prevents the CSS workaround.
<a href="#"> <h1>Foo</h1> </a>
<a href="#"></a> <h1>Foo</h1>