Build a Survey Form 5

Tell us what’s happening:
Having a bit of trouble figuring this one out as well. I just completed the first one, but this one I want to use in CSS format, and I’m confused as to how to create a survey in CSS format.

  • Objective: Build a CodePen.io app that is functionally similar to this: https://codepen.io/freeCodeCamp/full/VPaoNP.
  • Fulfill the below user stories and get all of the tests to pass. Give it your own personal style.
  • You can use HTML, JavaScript, and CSS to complete this project. Plain CSS is recommended because that is what the lessons have covered so far and you should get some practice with plain CSS. You can use Bootstrap or SASS if you choose. Additional technologies (just for example jQuery, React, Angular, or Vue) are not recommended for this project, and using them is at your own risk. Other projects will give you a chance to work with different technology stacks like React. We will accept and try to fix all issue reports that use the suggested technology stack for this project. Happy coding!
  • User Story #1: I can see a title with id="title" in H1 sized text.
  • User Story #2: I can see a short explanation with id="description" in P sized text.
  • User Story #3: I can see a form with id="survey-form" .
  • User Story #4: Inside the form element, I am required to enter my name in a field with id="name" .
  • User Story #5: Inside the form element, I am required to enter an email in a field with id="email" .
  • User Story #6: If I enter an email that is not formatted correctly, I will see an HTML5 validation error.
  • User Story #7: Inside the form, I can enter a number in a field with id="number" .
  • User Story #8: If I enter non-numbers in the number input, I will see an HTML5 validation error.
  • User Story #9: If I enter numbers outside the range of the number input, which are defined by the min and max attributes, I will see an HTML5 validation error.
  • User Story #10: For the name, email, and number input fields inside the form I can see corresponding labels that describe the purpose of each field with the following ids: id="name-label" , id="email-label" , and id="number-label" .
  • User Story #11: For the name, email, and number input fields, I can see placeholder text that gives me a description or instructions for each field.
  • User Story #12: Inside the form element, I can select an option from a dropdown that has a corresponding id="dropdown" .
  • User Story #13: Inside the form element, I can select a field from one or more groups of radio buttons. Each group should be grouped using the name attribute.
  • User Story #14: Inside the form element, I can select several fields from a series of checkboxes, each of which must have a value attribute.
  • User Story #15: Inside the form element, I am presented with a textarea at the end for additional comments.
  • User Story #16: Inside the form element, I am presented with a button with id="submit" to submit all my inputs.
  • You can build your project by forking this CodePen pen. Or you can use this CDN link to run the tests in any environment you like: https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js
  • Once you’re done, submit the URL to your working project with all its tests passing.
  • Remember to use the Read-Search-Ask method if you get stuck.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 Avast/71.0.1037.99.

Link to the challenge:

Hi, LBDemaree! I’m making this project, too. Show how your code is now, and let me help you. We can do it together. I am trying correct a problem with the checkbox and the text (I can not to put both aligned). Weel, if you want, we can do it together. I wait your response.

Cheers,

Carla Alves.

PS: If you want to see my first project, this is the link:

1 Like

I’m not sure what you mean by “I’m confused as to how to create a survey in CSS format”. When you did the Tribute Page you used CSS to style the page so you used CSS format.

You do this challenge just like the first. Click on the link in the objective to bring up the functionally similar one in codepen. Fork it and you’ll have blank HTML and CSS areas with just the <script> that has the tests. Run the tests and, naturally, they’ll all fail. So write something, an HTML element, that meets that first user story (objective). Run the tests again.

  • If it passes, write your next statement so the second objective passes.
  • If it fails, redo that element until the objective passes.
  • Continue until you’ve met all the objectives

When you’ve met all the objectives (user stories) you’ve got the html page but it’s ugly. (Switch from ‘editor’ view to ‘full page’ view to see what it looks like in a browser as if you surfed to that page)
You then use CSS to style the page so it resembles the sample you first saw.