SE452: HTML Forms [4/20] ![]() ![]() ![]() |
A form is a way for HTML and browsers to allow a user to send data back to the server.
A form can contain a variety of inputs, including:
An HTML form is identified in HTML source by the <form> tag
<form method="m" action="uri"> <p>more html, including fields</p> </form>
The method is the HTTP request method to use when submitting the data (POST or GET)
The action attribute is the server resource that will handle the request. This points to the servlet URI that we will write to handle this form.
HTML is defined by the World Wide Web consortium (W3C). See their web site for specifications of HTML, XHTML, XML, XSLT, and many other languages and tools.