Toggle navigation
☰
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <title>Basic HTML Form Example</title> <style> body { font-family: sans-serif; margin: 20px; } form { background: #f9f9f9; padding: 20px; border: 1px solid #ddd; border-radius: 8px; max-width: 300px; } .form-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; } input[type="text"], input[type="email"] { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; /* Ensures padding doesn't affect width */ } input[type="submit"] { background-color: #4CAF50; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; } input[type="submit"]:hover { background-color: #45a049; } </style> </head> <body> <form action="/html/tags/html_form_tag.cfm" method="get"> <div class="form-group"> <label for="name">Name:</label> <input type="text" id="name" name="name"> </div> <div class="form-group"> <label for="email">Email:</label> <input type="email" id="email" name="email"> </div> <input type="submit" value="Submit"> </form> </body> </html>