Question

1.Buttons that can automatically be created using the type attribute are __________. A. submit B. reset...

1.Buttons that can automatically be created using the type attribute are __________.

A. submit

B. reset

C. submit and reset

D. All buttons require the type attribute.

2. Which of the following are ways to submit form data?

A. email

B. to a server

C. to a JavaScript program

D. All of these are ways to submit form data.

3. When using a set of radio buttons, which attribute must be the same for all buttons in the set?

A. name

B. id

C. value

D. selected

4. Which of the following will send form results from a form named importantInfo to the email address [email protected] with the subject line that says "Read this!"?

A. <form name = "info" method = "post" id = "importantInfo" action = [email protected]?subject = "Read this!" enctype = "plain/text">

B. <form name = "importantInfo" method = "post" id = "info" action = "mailto:[email protected]?subject = "Read this!" enctype = "plain/text">

C. <form name = "importantInfo" method = "email" id = "info" action = mailto:[email protected] "subject = Read this!" enctype = "plain/text">

D. <form name = "importantInfo" method = post id = info action = "mail to: [email protected] ? subject = Read this!" enctype = "plain/text">

5. Given the following line of code, what does the this keyword refer to?

<input type = "button" name = "murgatroyd" id = "Mortimer" onclick = "doSomething(this.id)" />

A. the button type

B. the id attribute

C. the name attribute

D. the onclick() event

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

1.Buttons that can automatically be created using the type attribute are

Ans: C. submit and reset

This is how you use submit and reset:

  • <button type="reset">Resetting the form!</button><br><br>
  • <button type="submit" disabled>Submitting a form</button>

2. Which of the following are ways to submit form data?

Ans: B. to a server

Form data is directly sent to the server and then the server decides where to store the data or pass the data. HTML form hold the data together and then sends it to a server.

3. When using a set of radio buttons, which attribute must be the same for all buttons in the set?

Ans: A. name

Name - attribute specifies a name for the element

id - holds a unique id for the element

value - specifies the value of an i/p element and it cannot be used with <input type="file">

selected - it is a boolean attribute which specifies an option that should be pre selected whenever a page is loaded.

4. Which of the following will send form results from a form named importantInfo to the email address [email protected] with the subject line that says "Read this!"?

Ans: B. <form name = "importantInfo" method = "post" id = "info" action = "mailto:[email protected]?subject = "Read this!" enctype = "plain/text">

This is the default way to send form to emails - method should be "post" and the action should have" mailto:"

5. Given the following line of code, what does the this keyword refer to?

<input type = "button" name = "murgatroyd" id = "Mortimer" onclick = "doSomething(this.id)" />

Ans: B. the id attribute

Thw id attribute holds a unique id for each element

PLEASE UPVOTE

Add a comment
Know the answer?
Add Answer to:
1.Buttons that can automatically be created using the type attribute are __________. A. submit B. reset...
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
  • 1. Buttons that can automatically be created using the type attribute are __________. A. submit B....

    1. Buttons that can automatically be created using the type attribute are __________. A. submit B. reset C. submit and reset D. All buttons require the type attribute. 2. Which of the following are ways to submit form data? A. email B. to a server C. to a JavaScript program D. All of these are ways to submit form data. 3. When using a set of radio buttons, which attribute must be the same for all buttons in the set?...

  • 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...

  • Hey Guys I am doing a project and need some help with code in HTML and...

    Hey Guys I am doing a project and need some help with code in HTML and PHP. I need a form made in HTML that can be sent to a specific email through PHP. For some reason the info is not getting sent to my email, even though it says that it was sent. I have some source code here: <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $message = $_POST['message']; $email = mail('MY_EMAIL', $subject, $message,...

  • Using Javascript, I have two radio buttons, depending on the value of the radio button 1...

    Using Javascript, I have two radio buttons, depending on the value of the radio button 1 or 2, you will send a different form to the user. So, if radio button is value "1" send new form1 or if value "2" send new form 2.  New form will ask for letter grades for four courses in textboxes. Onsubmit of new form letter grades A,B,C,D need to be changed to numeric values 1,2,3,4 so an average grade for the four couses can...

  • How can I print the Database table in PHP please ? here I have form for name and email, also I have php code that allow...

    How can I print the Database table in PHP please ? here I have form for name and email, also I have php code that allow user to add his name and email to my database, all I need to print my final database when the user click on submit. <form action="" method="post"> <label>Name :</label> <input type="text" name="name" required="required" placeholder="Please Enter Name"/><br /><br /> <label>Email :</label> <input type="email" name="email" required="required" /><br/><br /> <input type="submit" value=" Submit " name="submit"/><br /> </form>...

  • How to make all the buttons work using javascript? <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta...

    How to make all the buttons work using javascript? <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script> function openAccount() { /* - get the account and initial amount values - check that all necessary information is provided - call the setCookie function to create account */ } function Deposit() { /* - get the account and amount values - check that all necessary information is provided - alter cookie with current amount of deposit */ } function...

  • 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....

  • NEED HELP with HTML with Javascript embedding for form validation project below. I have my code...

    NEED HELP with HTML with Javascript embedding for form validation project below. I have my code below but I'm stuck with validation. If anyone can fix it, I'd really appreciate. ****************************************************************************** CODE: <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title>Nice</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script> var textFromTextArea; function getWords(){ var text =...

  • This is a website picture The html and css code is as follow And my problem is as follow use the php and mysql Northwind Customer Database Search List Records All Records CustomerName v CustomerName...

    This is a website picture The html and css code is as follow And my problem is as follow use the php and mysql Northwind Customer Database Search List Records All Records CustomerName v CustomerName ContactName Address City PostalCode Search O ASC DESC List All Records Insert Record Country List City CustomerName ContactName Address City PostalCode Country List City Find by IID Find Insert 1 <! DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN" "http:L 3-<head> 4 Kmeta http-equiv-"Content-Type" content-"text/html; charset-utf-8" />...

  • Write a PHP program using a ''FOR loop' to compute and print the employee's salary for...

    Write a PHP program using a ''FOR loop' to compute and print the employee's salary for some number of years with a percent increase each year. Your submit button should re-call this page and use PHP to create a table of salaries for each year starting at 1 up to the value of the years variable. So if 'years' is equal to 5, there should be 5 rows in your table. For each year, the salary increases by X%. Make...

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
ADVERTISEMENT