Question: Requirements: 1 . Form Creation: Create an HTML form that collects the following information from the user: i . First Name ( text input )
Requirements:
Form Creation:
Create an HTML form that collects the following information from the user:
i First Name text input firstname
ii Last Name text input lastname
iii. Email Address email input emailaddress
iv Department dropdown department
v Title dropdown or radio buttons title
vi Website optional website
vii. Phone Number optional phonenumber
Include a checkbox for Dr that, when checked, will prepend the title Dr to the name when displayed.
Validation:
Use JavaScript to validate the input before submission.
The following fields should be required:
i First Name
ii Last Name
iii. Email Address
iv Department
v Title
Validation rules:
i Ensure the email address is valid and in the correct format.
ii Validate phone numbers to ensure they contain only digits and follow a valid format.
iii. Only allow valid URLs to be entered for the website field if filled out
Form Display:
Upon form submission, the users input should be displayed back to them on the page in a formatted manner.
If the Dr checkbox is checked, prepend Dr to the name when displayed.
The email address and website should be clickable links ie using tags
Ensure the display includes:
i Full Name with or without Dr
ii Department
iii. Title
iv Email Address as a clickable link
v Phone Number if provided
vi Website if provided, as a clickable link
HTML & CSS Validation:
Ensure the form is valid HTML and passes WC validation.
Use the following validators:
HTML Validator
CSS Validator
The form should be fully functional and accessible.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
