COMPUTER LECTURES

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

SYNTAX

OPENING TAG CLOSING TAG
<input>

Input Tag in HTML

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

Example : input type number.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Input type number</title>
<body>
<form>

<label for="Phone Number"> Phone Number: </label> <br/>
<input type="number" name="computerlectures_phone" size="60" maxlength="10"> <br/>
<label for="Alternative Phone Number">Alternative Phone Number: </label> <br/>
<input type="number" name="computerlectures_phone2" size="60" maxlength="10"> <br/>

<form>
</body>
</html>

The output on the web broswer

Input type nember