Sample Form
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Beautiful Responsive Form</title> <link rel="stylesheet" href="style.css" /> </head> <body> <div class="form-container"> <form class="form"> <h2>Contact Us</h2> <div class="form-group"> <label for="name">Full Name</label> <input type="text" id="name" placeholder="Enter your name" required /> </div> <div class="form-group"> <label for="email">Email Address</label> <input type="email" id="email" placeholder="Enter your email" required /> </div> <div class="form-group"> <label for="message">Your Message</label> <textarea id="message" rows="5" placeholder="Type your message..." required></textarea> </div> <button type="submit">Send Message</button> </form> </div> </body> </html>
CSS
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #6366f1, #ec4899); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; } .form-container { background: rgba(255, 255, 255, 0.9); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 100%; max-width: 500px; } .form h2 { text-align: center; color: #333; margin-bottom: 25px; } .form-group { margin-bottom: 20px; } label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; } input, textarea { width: 100%; padding: 12px 15px; border: 2px solid #ddd; border-radius: 10px; outline: none; font-size: 16px; transition: 0.3s; } input:focus, textarea:focus { border-color: #6366f1; box-shadow: 0 0 8px rgba(99, 102, 241, 0.4); } button { width: 100%; padding: 14px; background-color: #6366f1; color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; transition: background 0.3s ease; } button:hover { background-color: #4f46e5; }
JavaScript
.
Output Preview
Desktop
Mobile
Fullscreen