HTML form tags - HTML form - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

10.1. HTML form tags

10.1.1. HTML action attribute
10.1.2. HTML enctype attribute
10.1.3. HTML method attribute
Form labels - on behalf of HTML form
  • Form the label is paired to <form> began to </ form> end
  • Attribute.
    • Common - general attributes
    • Action - surfers input data transferred to places, such as a PHP page (nt22.php)
    • Method - data transmission methods
    • Enctype - data that will be sent to the server using the browser type coding
  • Trackback Address: http://www.nt22.com/xhtml-html/tag_form/

Example

  "nt22form" Method <form id = = = "post" action "nt22.php" /> <fieldset> <legend> ID: </ legend> = <label for "username" /> User: </ label> <input type = "text" id = "username" name = "username" /> </ fieldset> <fieldset> <legend> Password: </ legend> = <label for "pass" /> Password: </ label> <input type = "password" id = "pass" name = "pass" /> </ fieldset> </ form> 

Examples of HTML form form

Extended reading