How To Create Input Types in HTML
buayaberdiri.blogspot.com - When we want to create a website or application, sometimes we need a form such as a registration form, login form, information form, forgot password form and others.
There are several types of html input that we discuss, namely:
- Text Input Types
- Email Input Types
- Password Input Types
- Date Input Types
- File Input Types
- Submit Input Types
1. How To Add Input Type Text in HTML
Name : <input type="text" name="type your ID" id="IdName" placeholder="Type your Name or ID">
Inside the <input> code there are several attributes such as type, id, placeholder, name, and css code such as style that you can use to change the color, form height and form width.
The most important thing for creating a text form is the attribute type = "text" , which is used to make the input text look like letters.
2. Added Email Input Type in Form
Email : <input type="email" name="Email" id="Mail" placeholder="Type your Email">
To fill out the email form, you need the attribute type="email". Filling in this email address is usually used in the login form to enter a certain website or application account.
Or also when registering an account on the website and forgetting the password.
3. Make Password Form in Input HTML
Password : <input type="password" name="passwordAccount" id="passwordAccount">
To create a login or registration form, you usually need a password form for account security or for only certain people to access certain accounts.
In html it supports password filling form in <input> code. Inside the <input> code we can select the attribute type="password".
4. Selecting a Date on the Input Form
Born : <input type="date" name="BornDate" id="Age">
Usually on the registration form we choose a date to fill in the date of birth, or another date. In html input it supports attribute type="date". The website will generate a date selection form which is modeled by default from html.
5.Create File Upload Forms in HTML
Portofolio File : <input type="file" name="ChooseFile" id="FileSelect">
In the registration form, maybe you need a form to upload files such as photos, CV job applications, certain document forms and others.
HTML supports uploading files in the <input> code, by writing the type="file" attribute, you can save documents uploaded by users on the database server or displayed on web pages.
6. Using the Submit Button On an Input Type in HTML
<input type="submit" value="Login">
In the login or registration form, usually when you have finished filling out the form, you need a submit button to complete the login or registration.
There are several types of html input that are not discussed, but you can try, such as:
There are several types of html input that are not discussed, but you can try, such as:
- Button Input Types
- Checkbox Input Types
- Color Input Types
- Datetime Input Types
- Datetime-local Input Types
- Hidden Input Types
- Images Input Types
- Month Input Types
- Number Input Types
- Radio Input Types
- Reset Input Types
- Range Input Types
- Search Input Types
- Time Input Types
- Url Input Types
- Week Input Types