Part-2 Prac 2 : Create registration form for social networking website using HTML5 form tag and attributes. Apply necessary validation using HTML5 pattern attributes which Specifies a regular expression to check the input value against.
Registration Form
Tag Used In Form :
- Form tag
- Input tag
- Select tag
1. form tag : It is the root tag for create html form.
The <form> element can contain one or more of the following form elements:
- <input>
- <button>
- <select>
data.input elements are used within a form element to declare input controls that
allow users to input data.An input field can vary in many ways, depending on the
type attribute.
Attributes :
- Pattern : Specifies a regular expression that an input element's value
is checked against
- Placeholder : Specifies a short hint that describes the expected value of an
- Required : Specifies that an input field must be filled out before submitting
3. select tag : The <select> element is used to create a drop-down list.
The option tags inside the select element define the available options in the list.
Name: Naisarg Modi
ID: 18CE055
Name: Naisarg Modi
ID: 18CE055
Comments
Post a Comment