HTML Form Builder with Validation
By f i n l e y · Published · Updated
Generate an HTML form with built-in JavaScript validation.
Tags: html, javascript, coding
Prompt template
## Introduction Create a semantic HTML form with client-side validation logic. ## Form Details - Form Purpose: [dropdown: Contact Us, User Registration, Checkout, Survey] - List the fields needed: [textarea: E.g., Name, Email, Password, Phone Number] ## Validation & Styling - Framework for styling: [dropdown: Plain CSS, Tailwind CSS, Bootstrap] - Validation required: [multi: Required fields, Email format, Password strength, Phone regex] - How should errors be displayed?: [dropdown: Native browser tooltips, Custom inline error text, Alert box] --- **Goal**: Output the HTML structure and the accompanying JavaScript for validation.