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

html program example

this a an example of how a html code is done

Uploaded by

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

html program example

this a an example of how a html code is done

Uploaded by

727824tucs102
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

DOCTYPE html>
<html>
<head>
<title>GeeksforGeeks Survey Form</title>
<style>
body {
font-family: Arial, sans-serif;
}

.container {
width: 80%;
margin: 40px auto;
padding: 20px;
background-color: #f9f9f9;
border: 1px solid #ccc;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 10px;
}

.form-group input[type="text"], .form-group input[type="email"] {


width: 100%;
height: 40px;
margin-bottom: 20px;
padding: 10px;
border: 1px solid #ccc;
}

.form-group select {
width: 100%;
height: 40px;
margin-bottom: 20px;
padding: 10px;
border: 1px solid #ccc;
}

.form-group input[type="radio"] {
margin-right: 10px;
}

.btn-submit {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}

.btn-submit:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<div class="container">
<h2>GeeksforGeeks Survey Form</h2>
<form>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="description">Best option that describes
you:</label>
<select id="description" name="description" required>
<option value="">Select an option</option>
<option value="Student">Student</option>
<option value="Working Professional">Working
Professional</option>
<option value="Entrepreneur">Entrepreneur</option>
<option value="Other">Other</option>
</select>
</div>
<div class="form-group">
<label for="options">Which of the following options best
describes your interests? (Select all that apply)</label>
<input type="checkbox" id="option1" name="options"
value="Programming"> Programming
<input type="checkbox" id="option2" name="options"
value="Web Development"> Web Development
<input type="checkbox" id="option3" name="options"
value="Data Science"> Data Science
<input type="checkbox" id="option4" name="options"
value="Artificial Intelligence"> Artificial Intelligence
<input type="checkbox" id="option5" name="options"
value="Other"> Other
</div>
<button class="btn-submit" type="submit">Submit</button>
</form>
</div>
</body>
</html>

You might also like