HyperText Markup Language/Tag List/form

This lets the user create a form. This element lets the web page owner gather information from the users.

For a brief introduction, see the HyperText Markup Language/Forms section of this book.

Example

edit
<form method="post" action="SignIn.php">
<input type="text" name="UserName" size="6">
<input type="password" name="Password" size="6">
</form>

Required attributes

edit

method

edit

Specifies how information from a form transfers to a Web Server.

action

edit

Identifies the Web Page or CGI that the information from the form is to be sent.

Optional attributes

edit

class

edit

Associated CSS classes.

A string that will be unique throughout the page.

lang

edit

The ISO language code.

onreset

edit

A declared script that is run before a form's data is erased.

onSubmit

edit

A declared script that is run before a form is submitted.

style

edit

Inline CSS commands.

title

edit

Advisory title.

Standard attributes

edit

More info

edit

A link to a page with more info, then the name of the site the info came from (i.e. W3Schools).