In this tutorial, you will see the use of
input tag. The input tag is a input field in a
form. In which user can insert
data, and the type of data depends upon "type" attributes of
input tag.
| <input attributes /> |
|
<!DOCTYPE html > <html> <head><title>Title of document</title></head> <body> <form ><table > <caption><strong>Student Information form</strong></caption> <tr> <td>Roll_No</td> <td><input type="text" name="rollno" /></td> </tr> <tr><td>S_Name</td> <td> <input type="text" name="sname" /></td> </tr> <tr><td> Age</td> <td><input type="text" name="sage" /></td> </tr> </table> </form></body> </html> |

The input tag is available in both HTML5 and HTML4.01. But there is some attribute in HTML5, that is not supported by HTML4.01.