Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gaureshpai authored Nov 5, 2023
0 parents commit 2b9b8e5
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 0 deletions.
77 changes: 77 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html>

<head>
<link href="style.css" rel="stylesheet">
</head>

<body>
<header>
<h1>Survey Form</h1>
</header>

<div class="content">
<form>
<div class="marginfix1">
<strong>Personal Details</strong>
</div>
<table class="marginfix1">
<tr>
<td class="marginfix2">Name:</td>
<td class="marginfix3"><input type="text" placeholder="Enter your name" name="name" required></td>
</tr>
<tr>
<td class="marginfix2">Address:</td>
<td class="marginfix3"><input type="text" placeholder="Enter your address" name="address" required></td>
</tr>
<tr>
<td class="marginfix2">Email:</td>
<td class="marginfix3"><input type="email" placeholder="Enter your email" name="email" required></td>
</tr>
<tr>
<td class="marginfix2">Number:</td>
<td class="marginfix3"><input type="number" placeholder="Enter your number" name="number" required></td>
</tr>
</table>
<div class="marginfix1">
Please select your gender:
</div>
<table class="marginfix1">
<tr>
<td class="marginfix2"><input type="radio" name="gender" value="m">Male</td>
</tr>
<tr>
<td class="marginfix2"><input type="radio" name="gender" value="f">Female</td>
</tr>
<tr>
<td class="marginfix2"><input type="radio" name="gender" value="o">Prefer Not to Say</td>
</tr>
</table>
<hr class="headline">
<div class="marginfix1">
Additional Information
</div>
<table class="headline">
<tr>
<td class="marginfix5">
<textarea name="additionalInfo" placeholder="Enter additional information" required></textarea>
</td>
</tr>
</table>
<table class="marginfix4">
<tr>
<td>
<input type="submit">
</td>
</tr>
</table>
</form>
<hr class="headline">
</div>

<footer>
<p>&copy; 2023 Survey Form</p>
</footer>
</body>

</html>
51 changes: 51 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
body {
font-family: "Montserrat", sans-serif;
margin: 0;
padding: 0;
color: #000;
background-color: #f4f4f4;
}

header {
background-color: #35424a;
color: #ffffff;
padding: 20px 0;
text-align: center;
}

nav {
background-color: #ea907a;
text-align: center;
padding: 10px 0;
}

nav a {
text-decoration: none;
color: #ffffff;
padding: 10px 20px;
}

nav a:hover {
background-color: #35424a;
}

.content {
padding: 20px;
}

footer {
background-color: #35424a;
color: #ffffff;
text-align: center;
padding: 10px 0;
position: fixed;
bottom: 0;
width: 100%;
}

.marginfix5 textarea {
width: 100%;
height: 100px;
padding: 10px;
box-sizing: border-box;
}

0 comments on commit 2b9b8e5

Please sign in to comment.