You have some problems with your current code:
Elements inside the link tag:
<button/> element can not be within the
<a/> element so it can be read in the documentation at: HTML5 Spec Document from W3C :
Content model: Transparent , but there must be no interactive content descendant.
The element may be wrapped around paragraphs, lists, tables, and so forth, even between sections, so long as there is no interactive content within (e.g. buttons or other links).
Content template: transparent , but there should be no interactive content downlink.
The element can be wrapped around integer paragraphs, lists, tables, and so on, even entire sections, as long as there is no interactive content within it (eg buttons or other links). >
Close the tags
<p/> elements are not closed, which is why your code does not generate HTML in the way you want it to.
You can put both links within a paragraph and format with CSS to get the look you want:
border:1px solid #ccc;
font:15px arial, sans-serif;