HTML and CSS Reference
Q I want to create a form and test it, but I don't have the script ready. Is there
any way I can make sure that the form is sending the right information with a
A I run into this situation all the time! Fortunately, getting around it is very easy.
Within the opening <form> tag, modify the action attribute and make it a mailto
link to your email address, as in the following:
<form action=“mailto:email@example.com” method=“post">
Now you can complete your test form and submit it without having a script ready.
When you submit your form, it will be emailed to you as an attachment. Just open
the attachment in a text editor, and presto! Your form data is present.
1. How many forms can you have on a web page?
2. How do you create form controls such as radio buttons and check boxes?
3. Are passwords sent using a password control secure?
4. Explain the benefit of using hidden form controls.
5. What other technology do forms rely on?
1. You can have any number of forms on a web page.
2. These form controls are created with the input element. Radio buttons have the
type attribute set to radio , and check boxes are created using the type checkbox .
3. No! Passwords sent using a password control are not secure.
4. Hidden form controls are intended more for you than for the person filling out the
form. By using unique value attributes, you can distinguish between different
forms that may be sent to the same script or sent at different times.
5. For you to process the data submitted via forms, they must be paired with a server-
side script through the action attribute.
Search WWH ::