Question

Create a XHTML document containing a form. The title bar should display “Voting Form”. The form...

Create a XHTML document containing a form. The title bar should display “Voting Form”. The form should contain the following:  

Text boxes to accept the person’s name and e-mail address

At least five radio buttons the user can use to vote for a candidate for some office. (You make up some names)

Text box for write-in alternative

Checkboxes with name and value attributes for these options: o This is the first time I have voted online. o I have periodically voted online. o I always vote online. o Online voting is not patriotic

Submit Button

Reset Button

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Html Code:

<!DOCTYPE html>
<html>
<head>
   <title>Voting Form</title>
</head>
<body>

<center><h1><u>Voting Form</u></h1></center>

<form><h3>

   <!--Basic information field-->
   <u>Basic information:</u><br>
   Person name: <input type="text" name="fname"><br>
   e-mail address:<input type="text" name="lname"><br>
<br>

   <!--Radio buttons field-->
   <u>Candidate Name:</u><br>
<input type="radio" name="p1" value="p1_value"> John<br>
<input type="radio" name="p2" value="p2_value"> Robert<br>
<input type="radio" name="p3" value="p3_value"> Smith<br>
<input type="radio" name="p4" value="p4_value"> Bear<br>
<input type="radio" name="p5" value="p5_value"> Mike
<br><br>
  
   <!--Text area field-->
   <u>Feedback:</u><br>
   <textarea rows="4" cols="40"></textarea>
<br><br>
  
   <!--Checkbox field-->
   <u>Frequency of voting:</u><br>
   <input type="checkbox" name="op1" value="v1">This is the first time I have voted online.<br>
   <input type="checkbox" name="op2" value="v2">I have periodically voted online.<br>
   <input type="checkbox" name="op33" value="v3">I always vote online.<br>
   <input type="checkbox" name="op4" value="v4">Online voting is not patriotic.<br>
   <br>

   <!--submit and reset buttons-->
   <button type="submit" value="Submit">Submit</button>
   <button type="reset" value="Reset">Reset</button>

</h3></form>

</body>
</html>

Image reference:

Output verification:

Add a comment
Know the answer?
Add Answer to:
Create a XHTML document containing a form. The title bar should display “Voting Form”. The form...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Develop a form in the HTML document containing the following input entries: First Name (use single-line...

    Develop a form in the HTML document containing the following input entries: First Name (use single-line text input) Last Name Gender (use radio buttons) Email Address Telephone Number Sport Interests (use checkbox with at least four different sports items) Preferred Contact Time (use select boxes with Anytime, Morning, Afternoon, and Evening as the four items) Comments (use textarea control) Your page must also include submit and reset buttons! Also use CSS to stylze it and use javascript to validate the...

  • I NEED SOME HELP WITH THIS PLEASE :) 1. Create a data entry form on one...

    I NEED SOME HELP WITH THIS PLEASE :) 1. Create a data entry form on one of your web pages for visitors who want to be added to your mailing list. Include one of each of the following input elements*: Text <input type="text".... • Tel <input type="tel".... . Email <input type="email"... Date <input type="date"... . A set of radio buttons <input type="radio"... • A set of check boxes <input type="checkbox"... • A select element with options <select>.....</select> (do NOT add...

  • HELP! Event Handling- Develop an event handler to handle onclick Form Validation event when a user...

    HELP! Event Handling- Develop an event handler to handle onclick Form Validation event when a user clicks the submit button on the Survey Form. The event handler should validate the following: o The Name tesxt box should contain only Alphabets. o The Address text boxes should contain only appropriate numeric, alphabet or alphanumeric characters o Make sure at least two checkboxes are checked. o Make sure a radio button option is selected. o The Email Address should be valid. Validate...

  • Create two classes following the model shown in Chapter 19. Assuming your data form's subject is ...

    Here's the pizza example layout.Need Help with this program. Java ser interface: Here are the groupings trom the pizza u Size Pepperoni Anchovies Smal edium Large Your Price: Create two classes following the model shown in Chapter 19. Assuming your data form's subject is X (though l expect better names), you need to provide the following classes: 1. XFormFrame, as a subclass of JFrame, responsible for creating and operating the form 2. XFormViewer, your main program responsible for creating the...

  • JAVASCRIPT Create a simple web page that contains a JavaScript form that will allow the user...

    JAVASCRIPT Create a simple web page that contains a JavaScript form that will allow the user to answer 7 trivia questions. Your trivia game should contain: 2 text boxes 2 select dropdowns 2 multiple choice questions (using radio buttons, 4 options min) 1 choose-all-that-apply (checkboxes, 4 options min, one answer should be "None of the above"). No part-points for semi-correct answers. The questions can cover any topic you wish - but please keep it professional and easy enough that the...

  • This should be in PHP, please For Project 1, you need to create a Web form...

    This should be in PHP, please For Project 1, you need to create a Web form to present a ten (5) Multiple Choice quiz about the Chinese zodiac signs. Indicate that all of the questions must be answered for the quiz to be graded. You can use radio buttons or drop-down boxes Multiple Choice answers. Requirements for Project 1: Provide fields for visitors to enter their name and answers to the questions Notify the visitor that the fields are required...

  • Create an HTML5 page that contains a form to collect the following data. The text in...

    Create an HTML5 page that contains a form to collect the following data. The text in bold indicates the id value that should be assigned to each html control: Product (drop down list) product – iPad, iPhone 6S, Galaxy 5S, Moto X, and so on Quantity (number) quantity Unit price (number) unit_price Discount (%)(number) discount_rate Date (date)   order_date First Name (text box)   first_name Last Name (text box)   last_name Payment type (drop down list)   payment_type – Visa, Master, Discover, Amex, and...

  • PYTHON PROGRAMMING LANGUAGE (NEEDED ASAP) Using a structured approach to writing the program: This section will...

    PYTHON PROGRAMMING LANGUAGE (NEEDED ASAP) Using a structured approach to writing the program: This section will guide you in starting the program in a methodical way. The program will display a window with GUI widgets that are associated with particular functions: Employee Payroll O X -- - - - - - - - - - - Show Payroll Find Employee by Name Highest Lowest Find Employee by Amount Write Output to Fie Cancel - -------- ------------- Notice that some of...

  • Form Processing HTML One of the most ubiquitous uses of JavaScript is validating form data on...

    Form Processing HTML One of the most ubiquitous uses of JavaScript is validating form data on the client side before it is submitted to the server. It is done everywhere because it is fast and it gives you a great deal of flexibility in how you handle errors insofar as the GUI is concerned. Attached is an image of some code I wrote (so Blackboard can't mess it up). Some things to notice that will help you with the lab....

  • PHP Programming Question. Use the techniques you learned so far to create an Address Book application...

    PHP Programming Question. Use the techniques you learned so far to create an Address Book application that stores names, e-mail addresses, and phone numbers in a text file. Validate all input fields and include functionality that allows the user to view the address book. Also, include code that sorts the address book by name and deletes duplicate entries. Each page in the application should have a link back to the main page. Be creative and add extra features if you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT