0% found this document useful (0 votes)
4 views

My Minor Project coding

The document is an HTML template for a survey form, including fields for name, email, age, role, recommendations, preferences, and improvement suggestions. It features a simple CSS styling for layout and design. The form is designed to collect user feedback to improve performance.

Uploaded by

saadahmadsd
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

My Minor Project coding

The document is an HTML template for a survey form, including fields for name, email, age, role, recommendations, preferences, and improvement suggestions. It features a simple CSS styling for layout and design. The form is designed to collect user feedback to improve performance.

Uploaded by

saadahmadsd
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width,
initial-scale=1.0">
<title>Survey Form</title>
<link rel="stylesheet"
href="style.css">
</head>
<body>
<header>
<h1 id="title">Survey
Form</h1>
<p id="description">Please
fill out this survey to help me
improve my performance.</p>
</header>
<form id="survey-form">
<label id="name-label"
for="name">Name:</label><inpu
t type="text" id="name"
name="name"
placeholder="Enter name"
required>

<label id="email-label"
for="email">Email:</label><input
type="email" id="email"
name="email"
placeholder="Enter email"
required>
<label id="number-label"
for="number">Age:</label><inpu
t type="number" id="number"
name="age" min="18"
max="120" placeholder="age"
required><br>
<label id="dropdown-label"
for="dropdown">Which option
best describes your role?</label>
<select id="dropdown"
name="role">
<option value="">Select an
option</option>
<option
value="student">Student</option
>
<option
value="lacturer">Lacturer</optio
n>
<option
value="visitor">Visitor</option>
<option
value="other">Other</option>
</select>
<label id="recommend-label"
for="recommend-label">How
likely is that you recommend my
works to a friend?</label>
<input type="radio"
id="definitely"
name="recmmend"
value="definitely">
<label
for="definitely">Definitely</label>
<input type="radio" id="likely"
name="recmmend"
value="likely">
<label
for="likely">Likely</label>
<input type="radio" id="not-
likely" name="recmmend"
value="not-likely">
<label for="not-likely">Not
likely<input type="radio" id="not-
definitely" name="recmmend"
value="not-definitely"></label>
<label for="not-
definitely">Not
definitely</label>
<fieldset>
<legend>Which one do you
prefer? (check anyone)</legend>
<input type="checkbox"
id="option1" name="options"
value="option1">
<label for="option1"
value="option1">Option
1</label>
<input type="checkbox"
id="option2" name="options"
value="option2">
<label for="option2"
value="option2">Option
2</label>
</fieldset>
<label id="improvement"
for="improvement">What do you
think would improve my
works</label>
<textarea id="improvement"
name="improvement"></textarea
>
<button id="submit"
type="submit">Sumbit</button>
</form>
</body>
</html>
/#CSS#/
body { font-family: Arial, sans-
serif;
background-color: #f0f0f0;
}
header { text-align: center;
margin-bottom: 20px;
}
.title { font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
.description { font-size: 18px;
margin-bottom: 20px
}
.survey-form { max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 0 10px
rgba(0,0,0,0.1);
}
label { display: block;
margin-bottom: 10px;
}
input[type="text"],
input[type="email"],
input[type="number"] { width:
100%;
height: 40px;
margin-bottom: 20px;
padding: 10px;
border: 10px solid #ccc;
border-radius: 5px;
}
select { width: 100%;
height: 40px;
margin-bottom: 20px;
padding: 10px;
border: 10px solid #ccc;
}
textarea { width: 100%;
height: 100px;
margin-bottom: 20px;
padding: 10px;
border: 10px solid #ccc;
border-radius: 5px;
}
button[type"submit"] { width:
100%;
height: 40px;
background-color: #4CAF50;
color: #0fff;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}

You might also like