0% found this document useful (0 votes)
30 views3 pages

Macomb Web Dev Homework 6

The document is an HTML template for a music survey that collects user information, favorite music genres, purchasing methods, and personal thoughts on music. It includes a structured form with various input types such as text fields, radio buttons, checkboxes, and a textarea for comments. The form is designed to be submitted to a specified action URL and includes a JavaScript function to display the selected age from a range input.

Uploaded by

extreme29.2929
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views3 pages

Macomb Web Dev Homework 6

The document is an HTML template for a music survey that collects user information, favorite music genres, purchasing methods, and personal thoughts on music. It includes a structured form with various input types such as text fields, radio buttons, checkboxes, and a textarea for comments. The form is designed to be submitted to a specified action URL and includes a JavaScript function to display the selected age from a range input.

Uploaded by

extreme29.2929
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<!

DOCTYPE html>
<html lang="en">
<head>
<title>Music Survey</title>
<meta charset="utf-8">
<!-- Link the external CSS file to this document below this comment. -->
<link rel="stylesheet" type="text/css" href="[Link]">
</head>

<body>
<header>
<h1>Music Survey</h1>
</header>

<main>
<form id="survey" name="survey" method="post"
action="[Link]
enctype="application/x-www-form-urlencoded">

<!-- Step 1 -->


<section>
<h2>Please complete the following information about yourself below.</h2>
<fieldset>
<legend><strong>Step 1: Your information</strong></legend>
<label>
Name: <input type="text" name="name" id="name" size="30"
placeholder="Full Name" required autofocus> <br>
</label>

<label>
Email: <input type="email" name="email" id="email" size="30"
placeholder="Email Address" required> <br>
</label>

<label>
Name: <input type="tel" name="phone" id="phone" size="30"
placeholder="Phone Number" required> <br>
</label>

Please select your gender:


<label>Male&nbsp;<input type="radio" name="gender" value="male"></label>
<label>Female&nbsp;<input type="radio" name="gender"
value="female"></label>
<label>Prefer not to answer<input type="radio" name="gender"
value="no_answer"><br> </label>

<label>
Age: <input type="range" min="5" max="100" value="5" name="age"
id="myRange">
</label>

<span id="demo"></span> Years Old<br>


</fieldset>
</section>
<!-- Step 2 -->
<section>
<h2>Let us know about your favorite genre(s). Check all that apply.</h2>
<fieldset>
<legend><strong>Step 2: Favorite Genre(s)</strong></legend>
<label>Pop: <input type="checkbox" name="pop" id="pop"
value="yes"></label>
<label>Rock: <input type="checkbox" name="rock" id="rock"
value="yes"></label>
<label>Rap: <input type="checkbox" name="rap" id="rap"
value="yes"></label>
<label>Classical: <input type="checkbox" name="classical" id="classical"
value="yes"></label>
<label>Folk: <input type="checkbox" name="folk" id="folk"
value="yes"></label>
<label>Country: <input type="checkbox" name="country" id="country"
value="yes"></label>
<label>Other: <input type="checkbox" name="other" id="other"
value="yes"></label>
</fieldset>
</section>
<!-- Step 3 -->
<section>
<h2>How do you purchase your music?</h2>
<fieldset>
<legend><strong>Step 3: Purchase Options</strong></legend>
<label>I mainly purchase music through:
<select name="purchase_options" id="purchase_options">
<option selected="selected" disabled>Please Select One...</option>
<option value="itunes">iTunes</option>
<option value="p2p">Peer2Peer Sites</option>
<option value="paid_sites">Paid Subscription</option>
<option value="other">Other</option>
</select>
</label>
</fieldset>
</section>
<!-- Step 4 -->
<section>
<h2>Please share your thoughts with us.</h2>
<fieldset>
<legend><strong>Step 4: Share Your Thoughts</strong></legend>
How has music influenced your life?
<div class="comment">
<label><textarea name="Comments" id="UserComments" class="textinput"
onFocus="javascript:[Link]='';">
Place your comments here</textarea></label>
</div>
</fieldset>
</section>
<!-- Step 5 -->
<section>
<h2>Submit or Reset the form below.</h2>
<fieldset>
<legend><strong>Step 5: Send it!</strong></legend>
<input id="submit" type="submit" value="Complete Survey"> &nbsp;
<input id="reset" type="reset" value="Reset">
</fieldset>
</section>
</form>
</main>

<footer>
<!-- Hyperlink both the HTML5 Validation and Course Homepage text to link to
their respective sites -->
<p id="validation">
<a
href="[Link]
itwp1000/homework6/[Link]" title="HTML5 Validation">HTML5
Validation</a> | <a href="../[Link]" title="Back to the course homepage">Course
Homepage</a>
</p>

</footer>

<!-- JavaScript script for age slider display adapted from [Link] -->
<script>
var slider = [Link]("myRange");
var output = [Link]("demo");
[Link] = [Link];

[Link] = function() {
[Link] = [Link];
}
</script>

</body>
</html>

You might also like