I have created a simple survey form about fruits and health using HTML and CSS. The form contains four questions, including name, email and age (required fields), with a submit button at the bottom. The design has a green background color with red text, and I tried to make it clear and well centered.
I would like to receive feedback on the following aspects:
Structure and readability: Is the formatting clear? Are the fields logical and well categorized?
Design: What do you think of the color palette (green and red)? Does it fit well with the topic of āfruit and healthā?
Functionality: Do the radio buttons, checkboxes and form work as expected?
Iāve uploaded the project on GitHub, and you can find it there at this link: GitHub - Ilias-eloua/Survey-form: A simple survey--form project with HTML and CSS. [link to GitHub repository].
Since you are using a stylesheet, you do not really need to use the style attribute. Placing it in the stylesheet makes the code easier to maintain, and is a best practice - separation of concerns.
Also, remove the .txt extension from the HTML file.
Indent your code. This make it easier to read, maintain, and debug.
I noticed the fieldset element is not closed.
Consider resizing the input, textarea, and select elements. They donāt need to take up the full width of the page.
In the "When do you usually eat fruit?" section, two of the options are not aligned like the rest of the options.
How about rewording "In between ..." for morning and afternoon to "Morning snack" and "Afternoon snack"?
Iāve made the improvements based on your feedback, [Teller]. Iād love to hear your thoughts on the updated version, and feel free to anyone else to give their feedback as well!
Yesterday, I mistakenly submitted my old code instead of the improved version. As a result, the feedback I received was based on the previous code, not the updated one. My apologies for the confusion!
I would love to hear your thoughts on this version and see if there are any further improvements to be made. Also, anyone else is welcome to share their feedback as well!
Thanks in advance for taking the time to review it again.
The updated version looks much more cleaner and elegant.
Good use of the fieldset element to display the purpose of each section.
The rounded corners of each box gives it a nice touch.
Placing a subtle box shadow around the form gives it the feel of an actual form.
Removing the vibrant colours reduced their distracting effect.
The page is responsive to various viewport sizes.