css - How to format a button with in Form tag, html? -
i adding button link page using following method:
<td> <form method="link" action="page2.html"> <input type="submit" value="to page 2"> </form> </td>
i understand can change appearances of button using button{...}
in css, if button in form tag above, how format it? help.
form has no method="link"
, don't need form go page.
use a
:
<a href="page2.html">to page 2</a>
or if want button:
<button onclick="javascript:window.location.href='page2.html';">to page 2</button>
and give id
<button id="btn" ...
can give style want:
<style type="text/css"> #btn { background-color: green; color: white; font-weight: bold; /* etc */ } </style>
Comments
Post a Comment