HTML FORM TAGS

All HTML form tags support the standard global attributes, described earlier in this appendix in the section “HTML Global Attributes.”

Basic Form Structure

From a high level, an HTML form requires only an appropriately created <form> tag group. All other tags can be used only within this group.

 

<form> . . . </form>

When defining an HTML form, you must configure where the submitted data is to be sent to, which is the URL defined in the action attribute, and how it is to get there, which is the method attribute. After that, you still need to be concerned with the CGI program that will be accepting the form input so that you can process the user’s form submission request.

 <form action='URL' method='method'>
 </form>

Several ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.