Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions form2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Form</title>
<style>
/* Basic page styling */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f5f7fa;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}

/* Form container */
.form-container {
background: #fff;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 450px;
}

h2 {
text-align: center;
color: #333;
margin-bottom: 1.5rem;
}

label {
display: block;
margin-bottom: 0.5rem;
color: #555;
font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.3s;
}

input:focus,
textarea:focus {
border-color: #0078d4;
outline: none;
}

textarea {
resize: vertical;
min-height: 100px;
}

.submit-btn {
display: block;
width: 100%;
background: #0078d4;
color: white;
border: none;
padding: 0.75rem;
font-size: 1rem;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s;
}

.submit-btn:hover {
background: #005fa3;
}

.form-footer {
text-align: center;
margin-top: 1rem;
font-size: 0.9rem;
color: #777;
}
</style>
</head>
<body>

<div class="form-container">
<h2>Contact Us</h2>

<form action="/submit-form" method="post" novalidate>
<label for="name">Full Name</label>
<input type="text" id="name" name="name" placeholder="Your name" required>

<label for="email">Email Address</label>
<input type="email" id="email" name="email" placeholder="you@example.com" required>

<label for="message">Your Message</label>
<textarea id="message" name="message" placeholder="Write your message..." required></textarea>

<button type="submit" class="submit-btn">Send Message</button>
</form>

<div class="form-footer">
<p>We’ll get back to you within 24 hours.</p>
</div>
</div>

</body>
</html>