This is a solution to the Build a Survey Form FreeCodeCamp Project.
Build an app that is functionally similar to https://survey-form.freecodecamp.rocks. Do not copy this demo project.
- Solution URL: https://github.com/LucLhote/freeCodeCamp-Responsive-Web-Design-Certificate-Project-01-Build-a-Survey-Form-bis
- Live Site URL: https://luclhote.github.io/freeCodeCamp-Responsive-Web-Design-Certificate-Project-01-Build-a-Survey-Form-bis/
- You should have a page title in an
h1element with anidoftitle - You should have a short explanation in a
pelement with anidofdescription - You should have a
formelement with anidofsurvey-form - Inside the form element, you are required to enter your name in an
inputfield that has anidofnameand atypeoftext - Inside the form element, you are required to enter your email in an
inputfield that has anidofemail - 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
inputfield that has anidofnumber - 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
minandmaxattributes, you will see an HTML5 validation error - For the name, email, and number input fields, you can see corresponding
labelelements in the form, that describe the purpose of each field with the following ids:id="name-label",id="email-label", andid="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
selectdropdown element with anidofdropdownand 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
nameattribute - Inside the form element, you can select several fields from a series of checkboxes, each of which must have a
valueattribute - Inside the form element, you are presented with a
textareafor additional comments - Inside the form element, you are presented with a
buttonwithidofsubmitto submit all the inputs
- You should have an
h1element with anidoftitle - Your
#titleshould not be empty. - You should have a
pelement with anidofdescription - Your
#descriptionshould not be empty - You should have a
formelement with anidofsurvey-form - You should have an
inputelement with anidofname - Your
#nameshould have atypeoftext - Your
#nameshould requireinput - Your
#nameshould be a descendant of#survey-form - You should have an
inputelement with anidofemail - Your
#emailshould have atypeofemail - Your
#emailshould require input - Your
#emailshould be a descendant of#survey-form - You should have an
inputelement with anidofnumber - Your
#numbershould be a descendant of#survey-form - Your
#numbershould have atypeofnumber - Your
#numbershould have aminattribute with a numeric value - Your
#numbershould have amaxattribute with a numeric value - You should have a
labelelement with anidofname-label - You should have a
labelelement with anidofemail-label - You should have a
labelelement with anidofnumber-label - Your
#name-labelshould contain text that describes the input - Your
#email-labelshould contain text that describes the input - Your
#number-labelshould contain text that describes the input - Your
#name-labelshould be a descendant of#survey-form - Your
#email-labelshould be a descendant of#survey-form - Your
#number-labelshould be a descendant of#survey-form - Your
#nameshould have aplaceholderattribute and value. - Your
#emailshould have aplaceholderattribute and value - Your
#numbershould have aplaceholderattribute and value - You should have a
selectfield with anidofdropdown - Your
#dropdownshould have at least two selectable (not disabled)optionelements - Your
#dropdownshould be a descendant of#survey-form - You should have at least two
inputelements with atypeofradio(radio buttons) - You should have at least two radio buttons that are descendants of
#survey-form - All your radio buttons should have a
valueattribute and value - All your radio buttons should have a
nameattribute and value - Every radio button group should have at least 2 radio buttons
- You should have at least two
inputelements with atypeofcheckbox(checkboxes) that are descendants of#survey-form - All your checkboxes inside
#survey-formshould have avalueattribute and value - You should have at least one
textareaelement that is a descendant of#survey-form - You should have an
inputorbuttonelement with anidofsubmit - Your
#submitshould have atypeofsubmit - Your
#submitshould be a descendant of#survey-form
- Email - luc.lhote@outlook.com
- Frontend Mentor - @LucLhote
- LinkedIn - Luc Lhote
- freeCodeCamp - @LucLh
- freeCodeCamp Forum - @LucLh
