exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 2 question 19 discussion

Actual exam question from Microsoft's 70-480
Question #: 19
Topic #: 2
[All 70-480 Questions]

DRAG DROP -
You are developing a web page for runners who register for a race.
The page includes a slider control that allows users to enter their age.
You have the following requirements:
✑ All runners must enter their age.
✑ Applications must not be accepted from runners less than 18 years of age or greater than 90 years.
✑ The slider control must be set to the average age (37) of all registered runners when the page is first displayed.
You need to ensure that the slider control meets the requirements.
What should you do? (To answer, drag the appropriate word or number to the correct location in the answer area. Each word or number may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1-3: The <input type="range"> is used for input fields that should contain a value within a range.

Example -
<input type="range" name="points" min="0" max="10">
Box 4:
The step attribute specifies the legal number intervals for an <input> element.
Example: if step="3", legal numbers could be -3, 0, 3, 6, etc.

Syntax -
<input step="number">
number
Specifies the legal number intervals for the input field. Default is 1
Box 5: Use the value attribute to set the default value. Here: 37

Box 6: Definition and Usage -
The required attribute is a boolean attribute.
When present, it specifies that an input field must be filled out before submitting the form.

Example -
Username: <input type="text" name="usrname" required>

Reference: HTML Input Types -
http://www.w3schools.com/html/html_form_input_types.asp

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bdb1993
Highly Voted 5 years, 7 months ago
It doesn't make any sense to set step to 5
upvoted 8 times
...
Moniki
Highly Voted 5 years, 3 months ago
Step should be 0. So that you can increase/decrease age by 1. If you choose 5, only valid values will be 18, 23, 28, etc.
upvoted 7 times
...
mg86
Most Recent 4 years, 8 months ago
Step value should be 0 or value. Both work. https://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_number_step
upvoted 2 times
mg86
4 years, 8 months ago
or default. If you test it in code all 3 work.
upvoted 1 times
...
...
krzysiekprzybylak
5 years, 1 month ago
Step can be default or 1 but one is not option
upvoted 1 times
...
JMz123
5 years, 8 months ago
Step is not part of the question. Please correct it.
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...