I just passed the build a survey form test. However I have few questions regarding the layout.
Here is the freecodecamp sample: https://codepen.io/freeCodeCamp/full/VPaoNP I was wondering how can I make the survey form reach the end bottom of the background just like how its shown in the FCC sample in the link above. I tried but there is always a small space left between the background and the bottom end of the survey.
@sirajms5, let me first say that the sample projects show just one way to complete the project. The instructions say to make yours âfunctionally similarâ and âgive it your own personal styleâ.
Personally I like that your form ends without being at the bottom of the page. It looks more complete to me.
Before we can address your issue you have quite a few syntax errors in your code that you need to take care of first.
Run your HTML code through the W3C validator.
There are HTML syntax/coding errors you should be aware of and address.
Since copy/paste from codepen you can ignore the first warning and first two errors.
And I know youâre not asking for feedback but because I see them in our code Iâll mention, do not use the <br> element to force line breaks or spacing. Thatâs what CSS is for.
Clean up your code and then come back if you still want to address what youâre seeing.
If you decide you like it the way it is, itâs a good idea to ask for feedback on your completed project in the #project-feedback subforum.
The W3C validator is really a good tool that I didnât know about, I appreciate that you shared it with me.
I fixed all the errors in my code except one âelement head is missingâ. I tried to fix it, but it still shows up as an error. Can you check it out, please?
I removed all the âbrâ element from my html code.
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.
Review this for an understanding of the HTML boilerplate tags.