Programs in HTML5
4. Creating a registration form with validation.<!DOCTYPE html> <html> <head> <meta charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form> Name : <input type="text" name="uname" required="required" /><br /> phone no: <input type="tel" name="phno" required="required" /><br /> E-mail: <input type="email" name="email" required="required" /><br /> Website: <input type="url" name="site" required="required" /><br /> Date: <input type="date" name="dob" required="required" /><br /> Time: <input type="time" name="t1" required="required" /><br /> City:<input list="city"> <datalist id="city"> <option value="-Select"> <option value="Hyderabad"> <option value="Mumbai"> <option value="Islamabad"> </datalist> <br><input type="submit" value="Register" /> </form> </body> </html>Output :
Developed by