HyperText Markup Language/Tag List/form
Jump to navigation
Jump to search
Use
[edit | edit source]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 | edit source]<form method="post" action="SignIn.php">
<input type="text" name="UserName" size="6">
<input type="password" name="Password" size="6">
</form>
Required attributes
[edit | edit source]method
[edit | edit source]Specifies how information from a form transfers to a Web Server.
action
[edit | edit source]Identifies the Web Page or CGI that the information from the form is to be sent.
Optional attributes
[edit | edit source]class
[edit | edit source]Associated CSS classes.
id
[edit | edit source]A string that will be unique throughout the page.
lang
[edit | edit source]The ISO language code.
onreset
[edit | edit source]A declared script that is run before a form's data is erased.
onSubmit
[edit | edit source]A declared script that is run before a form is submitted.
style
[edit | edit source]Inline CSS commands.
title
[edit | edit source]Advisory title.
Standard attributes
[edit | edit source]More info
[edit | edit source]A link to a page with more info, then the name of the site the info came from (i.e. W3Schools).