Building forms is a common task in Front End. In this exercise, we will build a basic "Contact Us" form, commonly seen on marketing websites for visitors to ask questions or provide feedback.
<textarea> will be more suitable.Upon submission, POST the form data to https://questions.greatfrontend.com/api/questions/contact-form with the following fields in the request body: name, email, message.
If all the form fields are correctly filled up, you will see an alert containing a success message. Congratulations!
You do not need JavaScript for this question, the focus is on HTML form validation and submission.
Code Editor
Start coding your solution hereBrowser preview and Console
Test and preview your UI in real timeconsole.log() statements will appear here.