-
Notifications
You must be signed in to change notification settings - Fork 0
Survey Form
Objective: Build an app that is functionally similar to https://survey-form.freecodecamp.rocks/
User Stories:
- You should have a page title in an h1 element with an id of title
- You should have a short explanation in a p element with an id of description
- You should have a form element with an id of survey-form
- Inside the form element, you are required to enter your name in an input field that has an id of name and a type of text
- Inside the form element, you are required to enter your email in an input field that has an id of email
- If you enter an email that is not formatted correctly, you will see an HTML5 validation error
- Inside the form, you can enter a number in an input field that has an id of number
- The number input should not accept non-numbers, either by preventing you from typing them or by showing an HTML5 validation error (depending on your browser).
- If you enter numbers outside the range of the number input, which are defined by the min and max attributes, you will see an HTML5 validation error
- For the name, email, and number input fields, you can see corresponding label elements in the form, that describe the purpose of each field with the following ids: id="name-label", id="email-label", and id="number-label"
- For the name, email, and number input fields, you can see placeholder text that gives a description or instructions for each field
- Inside the form element, you should have a select dropdown element with an id of dropdown and at least two options to choose from
- Inside the form element, you can select an option from a group of at least two radio buttons that are grouped using the name attribute
- Inside the form element, you can select several fields from a series of checkboxes, each of which must have a value attribute
- Inside the form element, you are presented with a textarea for additional comments
- Inside the form element, you are presented with a button with id of submit to submit all the inputs
- Fulfill the user stories and pass all the tests below to complete this project. Give it your own personal style. Happy Coding!
Note: Be sure to add <link rel="stylesheet" href="styles.css">
in your HTML to link your stylesheet and apply your CSS
Tests
Waiting: You should have an h1 element with an id of title. Waiting: Your #title should not be empty. Waiting: You should have a p element with an id of description. Waiting: Your #description should not be empty. Waiting: You should have a form element with an id of survey-form. Waiting: You should have an input element with an id of name. Waiting: Your #name should have a type of text. Waiting: Your #name should require input. Waiting: Your #name should be a descendant of #survey-form. Waiting: You should have an input element with an id of email. Waiting: Your #email should have a type of email. Waiting: Your #email should require input. Waiting: Your #email should be a descendant of #survey-form. Waiting: You should have an input element with an id of number. Waiting: Your #number should be a descendant of #survey-form. Waiting: Your #number should have a type of number. Waiting: Your #number should have a min attribute with a numeric value. Waiting: Your #number should have a max attribute with a numeric value. Waiting: You should have a label element with an id of name-label. Waiting: You should have a label element with an id of email-label. Waiting: You should have a label element with an id of number-label. Waiting: Your #name-label should contain text that describes the input. Waiting: Your #email-label should contain text that describes the input. Waiting: Your #number-label should contain text that describes the input. Waiting: Your #name-label should be a descendant of #survey-form. Waiting: Your #email-label should be a descendant of #survey-form. Waiting: Your #number-label should be a descendant of #survey-form. Waiting: Your #name should have a placeholder attribute and value. Waiting: Your #email should have a placeholder attribute and value. Waiting: Your #number should have a placeholder attribute and value. Waiting: You should have a select field with an id of dropdown. Waiting: Your #dropdown should have at least two selectable (not disabled) option elements. Waiting: Your #dropdown should be a descendant of #survey-form. Waiting: You should have at least two input elements with a type of radio (radio buttons). Waiting: You should have at least two radio buttons that are descendants of #survey-form. Waiting: All your radio buttons should have a value attribute and value. Waiting: All your radio buttons should have a name attribute and value. Waiting: Every radio button group should have at least 2 radio buttons. Waiting: You should have at least two input elements with a type of checkbox (checkboxes) that are descendants of #survey-form. Waiting: All your checkboxes inside #survey-form should have a value attribute and value. Waiting: You should have at least one textarea element that is a descendant of #survey-form. Waiting: You should have an input or button element with an id of submit. Waiting: Your #submit should have a type of submit. Waiting: Your #submit should be a descendant of #survey-form.
- Responsive Web Design Certification
- JavaScript Algorithms and Data Structures (Beta) Certification
- Front End Development Libraries Certification
- Data Visualization Certification
- Relational Database Certification
- Back End Development and APIs Certification
- Quality Assurance Certification
- Scientific Computing with Python (Beta) Certification
- Data Analysis with Python Certification
- Information Security Certification
- Machine Learning with Python Certification
- College Algebra with Python Certification
- A2 English for Developers (Beta) Certification
- (New) Foundational C# with Microsoft Certification
- The Odin Project (Beta)
- Coding Interview Prep
- Project Euler
- Rosetta Code
- Legacy Responsive Web Design Challenges
- JavaScript Algorithms and Data Structures Certification
- Legacy Python for Everybody