You have some problems with your current code:
Elements inside the link tag:
The <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).
What translated:
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
The <p/>
elements are not closed, which is why your code does not generate HTML in the way you want it to.
Solution
You can put both links within a paragraph and format with CSS to get the look you want:
a{
display:inline-block;
text-decoration:none;
padding:6px 4px;
border:1px solid #ccc;
background-color:#f2f2f2;
color:#333;
font:15px arial, sans-serif;
}
a:hover{
border-color:#aaa;
}
<p>
<a href="guardadorrebanhos.html">
voltar
</a>
<a href="guardadorrebanhos.html">
análise
</a>
</p>