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.
Want to grow in your front end skills? Learn them the right way — build apps step-by-step while referencing best practices from Senior engineers.
Want to grow in your front end skills? Learn them the right way — build apps step-by-step while referencing best practices from Senior engineers.
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.
Want to grow in your front end skills? Learn them the right way — build apps step-by-step while referencing best practices from Senior engineers.
console.log()
statements will appear here.