You can create all types of buttons. There is the submit type, the radio type, the checkbox type and also the button type. Here they are at a glance:
HTML file: | Displayed by browser: |
---|---|
<input type="submit" value="Click me to submit"> | |
<input type="radio" value="this">You can choose this one
<br /><input type="radio" value="that">Or you can choose this one. But not both. |
You can choose this one
Or you can choose this one. But not both. |
<input type="checkbox" value="choice1">You can choose this one. Or not.
<br /><input type="radio" value="choice2">You can ALSO choose this one. Or not. |
You can choose this one. Or not.
You can ALSO choose this one. Or not. |
<input type="button" onclick="alert('Hello World!')" value="Click Me!"> |