Skip to main content

Registration Form HTML

 



Some other useful attributes used with <input> are:

1.   Id : This is used to identify the html element uniquely through the document object.

MODEL:

2.    Class: It is used to apply CSS style to the individual input element.

 

Example:

 

<!DOCTYPE html> <html>

<head>

<title>Forms in html 5 </title></head>

<body>

<form> Name: <input type="text"autocomplete><br><br>

E-mail:<input type="email" name="email"><br><br>

Date of Inception: <input type="date" name="bday"><br><br>

Office time: <input type="time" name="usr_time"><br><br>

Number of years completed(between 1 and 100): <input type="number" min="1" 

max="100"><br><br>

Office phone number: <input type="tel" name="phone" pattern="[0-9]{2}-[0-9]

{10}" required><br><br>

 Add your homepage:

<input type="url" name="homepage"><br><br>

<input type="image" src="E:/submitbutton.png" alt="click here to submit" >

</form>

</body>

</html>




 

Comments

Post a Comment