FreeCodeCamp Survey Form Exercise

I have created this form but it is showing background image in my local server but not in codepen.io btw pls rate this form it took me 1 day to build this as a beginner
https://codepen.io/akshatjain3648/pen/XWzbOJG

Welcome to the forums @Zeus1108.

Your local machine is not a server. If you wish to use an image from an outside source do some searching and find a place that will host your image for free.

Some things to revisit on your page;

  • Keep the test script when forking the pen (<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>)
    The test script, with all tests passing, should be included when you submit your projects.
    Your page passes 1/10 user stories. Click the red button to see which test(s) are failing and text to help you correct the issue.
    Be sure and read more than just the first line of the failing message.
    The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.
  • Codepen provides the boilerplate for you. It only expects the code you’d put within the body element in the HTML editor. (No need to include the body tags). For anything you want to add to the <head> element click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.
  • Run your HTML code through the W3C validator.
    There are HTML syntax/coding errors you should be aware of and address.
  • Codepen provides validators for HTML, CSS and JS. Click on the chevron in the upxper right of each section and then click on the respective ‘Analyze’ link.
    The one for CSS is good. Use it and address the issue(s).
    (The one for HTML misses things which is why I recommend W3C)
  • User’s should be able to click on the label to toggle a selection, not just the radio button / checkbox
  • Change the cursor to a pointer when hovering over the submit button
  • Do not use the <br> element to force line breaks or spacing. That’s what CSS is for.
    Reference MDN Docs

When asking for feedback it’s best to open your topic in the #project-feedback subforum.
I’ve taken the liberty of moving this for you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.