Home  >  Article  >  Web Front-end  >  HTML Form Elements

HTML Form Elements

PHPz
PHPzOriginal
2024-09-04 16:14:59588browse

In Web Development Technologies (especially for the front-end), “HTML” is the basic or primary markup language that we use to display the web pages (the page which we see on a website). Sometimes, in an HTML page, along with the other content display, we need to take some user inputs as well (especially in dynamic web sites). And to take the user inputs in an HTML page, we need to use multiple form elements to create those forms properly, and with the help of those forms, we correctly take the user inputs and put those inputs (data) in our internal Databases at the back-end. Now, as we know that HTML codes are written under various tag elements (<>), so, basically, “HTML Form Elements” are those elements that are used inside a “

” tag, and these elements, along with other standard and unique attributes, give a form and structure as well, which let the users know what to do with the form and how to proceed in a structural manner.

Explain HTML Form Elements (including syntax and examples with output)

Since there are multiple HTML form elements to create a form & give the form a proper look in a structured way, below are some of them explained one by one.

SL No. Tags Meanings / Descriptions
 

1

To define a HTML form for user inputs
 

2

To define input control
 

3

To specify a list of pre-defined options
 

4

To define group related elements
 

5

To define a secure input
 

6

To define a label of input
 

7

To define a caption for fieldset
 

8

 

To define a group of similar options.

 

 

9

 

 

To define an option for the drop-down.

 

10

 

 

To define a  result

 

11

 

 

To define a list of the drop-down.

 

12