Web Design

(Nancy Kaufman) #1

267


CHAPTER

Adding Forms to Your Site 11


TIP


Can I also include a button to clear the form?
Yes. HTML includes a type=”reset” for both the <input> and <button> tags. However, you should
carefully consider before you add the button if it will actually help. Users very rarely fill out a form and
then decide to clear it; rather, most of the time the reset button is clicked by mistake, which is why most
designers do not include it.

● When you view the page in a
browser, the button appears.
If you click the button, the
form’s data is submitted to
the page specified in the
<form> tag’s action.

4 Type value=”?” />,
replacing? with the text you
want to appear on the
button.


4

Free download pdf