MERA TEST 3 QUESTIONS AND 100%
CORRECT ANSWERS!!
Indicates which kind of widget is displayed by the browser.
type
Allows the server to identify which data came from which widget.
name
Uniquely identifies the specific input tag to the browser.
id
Allows the input to start with a default value.
value
Provides a hint to the user about the information being requested.
placeholder
Refer to the HTML below.
<form action="https://google.com/">
</form>
To which server will the browser send the form data?
google.com
Refer to the HTML below.
<form action="https://google.com/">
</form>
Which method will the browser use to communicate with the server?
,HTTP Get Request
Which tag creates a text box widget?
<input>
Which attribute must be set to create a text box widget?
1) type?
2) name?
3) id?
Trick Question... No attribute is needed
JA si son pendejos
Which tag creates a text area widget?
<textarea>
Which attribute inside the <label> tag is used to associate the label with a widget?
for
The for attribute contains the id attribute of the input element to be labeled.
Add a <form> tag to POST a full name to https://wp.zybooks.com/form-viewer.php in a
new window, using a submit <input> tag with a value of Submit.
CODE:
<!-- TODO: Add a <form> tag -->
<label for="full">Full name</label>
<input type="text" id="full" name="fullName" placeholder="Jan Smith">
<br><br>
<!-- TODO: Add a submit <input> tag -->
, <form action = "https://wp.zybooks.com/form-viewer.php" method = "POST" target = "_blank">
~~~~
~~~~code
~~~~
<input type="submit" value="Submit">
</label>
DO CHALLENGE ACTIVITY FOR 3.2^^^^^^
SON CRACKS
Refer to the HTML below.
<form>
<input type="checkbox" name="check1" checked>
<input type="checkbox" name="check2">
<input type="radio" name="radio1" value="1" checked>
<input type="radio" name="radio2" value="2">
<input type="radio" name="radio3" value="3">
<input type="submit">
</form>
If the user clicks submit without changing anything in the form, how many items will be
sent to the server?
2
The browser will send information for check1 and radio1, but not the other unchecked input
widgets.
Refer to the HTML below.
<form>
<input type="checkbox" name="check1" checked>
CORRECT ANSWERS!!
Indicates which kind of widget is displayed by the browser.
type
Allows the server to identify which data came from which widget.
name
Uniquely identifies the specific input tag to the browser.
id
Allows the input to start with a default value.
value
Provides a hint to the user about the information being requested.
placeholder
Refer to the HTML below.
<form action="https://google.com/">
</form>
To which server will the browser send the form data?
google.com
Refer to the HTML below.
<form action="https://google.com/">
</form>
Which method will the browser use to communicate with the server?
,HTTP Get Request
Which tag creates a text box widget?
<input>
Which attribute must be set to create a text box widget?
1) type?
2) name?
3) id?
Trick Question... No attribute is needed
JA si son pendejos
Which tag creates a text area widget?
<textarea>
Which attribute inside the <label> tag is used to associate the label with a widget?
for
The for attribute contains the id attribute of the input element to be labeled.
Add a <form> tag to POST a full name to https://wp.zybooks.com/form-viewer.php in a
new window, using a submit <input> tag with a value of Submit.
CODE:
<!-- TODO: Add a <form> tag -->
<label for="full">Full name</label>
<input type="text" id="full" name="fullName" placeholder="Jan Smith">
<br><br>
<!-- TODO: Add a submit <input> tag -->
, <form action = "https://wp.zybooks.com/form-viewer.php" method = "POST" target = "_blank">
~~~~
~~~~code
~~~~
<input type="submit" value="Submit">
</label>
DO CHALLENGE ACTIVITY FOR 3.2^^^^^^
SON CRACKS
Refer to the HTML below.
<form>
<input type="checkbox" name="check1" checked>
<input type="checkbox" name="check2">
<input type="radio" name="radio1" value="1" checked>
<input type="radio" name="radio2" value="2">
<input type="radio" name="radio3" value="3">
<input type="submit">
</form>
If the user clicks submit without changing anything in the form, how many items will be
sent to the server?
2
The browser will send information for check1 and radio1, but not the other unchecked input
widgets.
Refer to the HTML below.
<form>
<input type="checkbox" name="check1" checked>