COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | INPUT TYPE "TEXT"

SYNTAX

OPENING TAG CLOSING TAG
<input>

input type text Tag in HTML

<input type="text" size=" " name=" " maxlength=" ">

Example : input type text.html

<!DOCTYPE html>
<html>
<title>Computer lectures | input type text</title>
<body>
<form>

<label for="First name"> First Name: </label> <br/>
<input type="text" name="computerlectures_firstname" size="60" maxlength="30"> <br/>
<label for="Middle name"> Middle name: </label> <br/>
<input type="text" name="computerlectures_middleName" size="60" maxlength="30"> <br/>
<label for="Last name"> Last name: </label> <br/>
<input type="text" name="computerlectures_lastname" size="60" maxlength="30"> <br/>
<input type="reset" value="Cancel">
<input type="submit" value="Submit">

<form>
</body>
</html>

The output on the web broswer

Input type text