Input type text

 1) 






Input type ="text" is the most basic type of input the form can hold. It will provide us will a text input field. It is to be noted that the "label" tag is used to define what will be written in the text field.






















2)











The "for" attribute in the label tag and the "id" attribute in the input tag is interrelated, for always shows for which input a particular label heading is assigned with the help of the value in id attribute. Both id and for should have same value.

placeholder attribute gives a sample of what should be written in the input area.







Comments