HTML Form Tag | Form Tag | HTML <form> Tag Tutorial By WDH

HTML Form Tag


HTML form tag

HTML Form tag is used when you want to collect your website users or visitors data.

A form contains many controls such as input field, password field, radio buttons, checkboxes, submit buttons etc.


Syntax

 

Syntax

1

2

3

   <form action="script url" method="get or post">

   form elements to put here like input, checkbox etc.

   </form>

 

This is the example for attribute enctype, you can use this example to upload form data in format of files.

 

Example