• Home
  • Docker
  • Kubernetes
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • CI
  • Install
  • Samples
  • Archived
HTML | HTML Forms
  1. HTML Forms
  2. Text controls (single line)
  3. Text-Password controls (single line)
  4. Text-Hidden controls (single line)
  5. Text controls (multiple lines)
  6. Radio controls (single choice)
  7. Checkbox controls (multiple choice)
  8. Select controls (single choice)
  9. Select controls (multiple choice)
  10. Buttons
  11. Buttons-Submit
  12. Buttons-Reset

  1. HTML Forms

    The value of the attribute "METHOD" specifies the HTTP method to execute.
    If this attribute is not specified, the GET method will be executed by default.

    The value of the attribute "ACTION" specifies the path for a resource on the server.
    The path works the same way as an hyperlink:
    • Absolute path:
      If the path in the attribute "ACTION" starts by the "/" character, that's an absolute path for the resource requested.

      Example:

      Is equivalent to:

    • Relative path:
      If the web page (which contains the form attribute) is located somewhere on the server, let say :

      Then, the resource requested must have the following path on the server :

      Example:

      Is equivalent to:

    There can be more than one form on the same web page. But only one form can be submitted at once.
  2. Text controls (single line)


    HTML code:

    This control won't be sent with the form parameters, because it has the attribute "DISABLED".
  3. Text-Password controls (single line)


    HTML code:

  4. Text-Hidden controls (single line)
    HTML code:

  5. Text controls (multiple lines)


    HTML code:

  6. Radio controls (single choice)



    HTML code:

    If there are multiple radio buttons with the same name on the same form, then only one can be selected.
  7. Checkbox controls (multiple choice)



    HTML code:

    If the two checkbox are checked then the parameter string generated from this set of checkboxes will look like this:

  8. Select controls (single choice)


    HTML code:

    If this case the parameter string generated will look like this:

  9. Select controls (multiple choice)


    HTML code:

    If this case the parameter string generated will look like this:

  10. Buttons


    HTML code:

  11. Buttons-Submit


    HTML code:

  12. Buttons-Reset


    HTML code:

© 2025  mtitek