how to make a button that opens text html code example
Example 1: how to add buttons in html
<button type="button" onclick="alert('You pressed the button!')">Click me!</button>
Example 2: html button with link
<form action="https://google.com">
<input type="submit" value="Go to Google" />
</form>