N00Blog


The <form> tag
May 28, 2008, 1:51 am
Filed under: Web Applications | Tags: , , , , ,

The <form> tag in xhtml inserts a form, and allows for associated objects (buttons, drop down boxes etc) to be inserted, into an html page.

between the opening and closing tags, there is typically text, asking the user to input or select from some data, along with the code allowing this process to occur. For example

<input type=”textfield” name=”UserName”>

to allow the user to enter their name into a text box.

Three important attributes can be entered within the opening tag:

Method: Such as “GET” or “POST” which dictates the method that is used to handle the data in sending it to the webserver

Action: The URL to which the data is to be sent

Enctype: The format in which the data is sent, whether as plaintext, ciphertext etc.

Sources:

http://www.topxml.com/xhtml/xhtml_tag_form.asp


No Comments Yet so far
Leave a comment



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>