Skip to content
Open
Show file tree
Hide file tree
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
92 changes: 92 additions & 0 deletions form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
margin-top: 150px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-transform: capitalize;
margin-bottom: 30px;
}

form {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 70px;
width: 400px;
}

h1 {
text-align: center;
color: #007BFF;
font-size: 40px;
}

h2 {
font-size: 22px;
color: #333;
margin-top: 20px;
display: block;
align-items: center;
align-content: center;
justify-content: center;
}

fieldset {
border: 1px solid #ccc;
border-radius: 4px;
padding: 10px;
margin: 10px;
}

legend {
font-weight: bold;
}

p {
margin: 10px;
}

label {
font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
width: 100%;
padding: 10px;
margin: 5px;
border: 1px solid #ccc;
border-radius: 4px;
}

input[type="radio"] {
margin-right: 5px;
}

button {
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 4px;
padding: 10px 15px;
cursor: pointer;
padding: 20px;
width: 400px;
font-size: 20px;
}

button:hover {
background-color: #0056b3;
}

input[type="radio"] {
margin-right: 5px;
}

41 changes: 41 additions & 0 deletions form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>feedback form</title>
<link rel="stylesheet" href="form.css">
</head>
<body>
<a href="form.css"></a>
<form action="">
<h1>feedback form</h1>
<h2>rate this website</h2>
<p>name: <input type="text" name="name" required></p>
<fieldset>
<legend> thankyou for your time</legend>
<h2>rate this</h2>
<p> <input type="radio" name="rating" id="" required>good</p>
<p><input type="radio" name="rating" id="">excellent</p>
<p> <input type="radio" name="rating" id="">poor</p>
<p> <input type="radio" name="rating" id="">needs improvement</p>
</fieldset>
<p>any comments: <textarea name="comments" id="comments" cols="40" rows="10"></textarea></p>
<p>email:(optional) <input type="email"name= "email" id="email"></p>
<p>rate this from 1-10 <input type="number" name="" id="" required></p>
<fieldset>
<legend>
<h2> how's your mood today?</h2></legend>
<select name="mood" id="mood">
<option value="">select</option>
<option value="happy">happy</option>
<option value="sad">sad</option>
<option value="angry">angry</option>

</select> </fieldset>

<button>submit</button>
</form>
</body>
</html>