Hacker News new | ask | show | jobs
by warp 1235 days ago
You can do this:

    <a href="#something"><button>menu</button></a>
Or maybe:

    <form action="#something"><button type="submit">menu</button></form>
Not sure either of those options are better than the original post though :)
1 comments

The latter would probably work, but the first is invalid HTML – you can't nest interactive elements. Will browsers allow it? Yes. But it's still invalid per the spec.