HTML Forms - Buttons
(Page 4 of 6 )
You can also create buttons in HTML. Below is a simple button and a submit button:
<html>
<body>
<form action="">
<input type="button" value="I am a button">
<br><br>
<input type="submit" value="Me too!">
</form>
</body>
</html>
The result:
Fieldsets
You can pretty up your form elements with fieldsets. Here is an example showing how to do so:
<html>
<body>
<fieldset>
<legend>
Client Name:
</legend>
<form action="">
First Name <input type="text" size="3">
Last Name <input type="text" size="3">
</form>
</fieldset>
</body>
</html>
The result of this code is:
Client Name:
Next: Sending Data with a Form >>
More HTML Articles
More By James Payne