You are developing an HTML5 web form to collect feedback information from site visitors.
The web form must display an INPUT element that meets the following requirements:
Allow numeric values between 1 and 10.
Default to the value of 5.
Display as a slider control on the page.
You need to add the INPUT element to the form.
Which HTML element should you add?
A.
Rating (Between 1 and 10): <input type=”number” name=”rating” min =”1″ max-“10”>
B.
Rating (Between 1 and 10): <input type=”number” name=”rating” min=”1″ max=”10″ default=”5″>
C.
Rating (Between 1 and 10): <input type=”range” name=”rating” min=”1″ max=”10″ default”=”5″>
D.
Rating (Between 1 and 10): <input type=”range” name=”rating” min=”10″ max=”10″ value=”5″>
Explanation:
input type=”range”
The <input type=”range”> is used for input fields that should contain a value within a range.
Depending on browser support, the input field can be displayed as a slider control.
Example<form>
<input type=”range” name=”points” min=”0″ max=”10″> </form>
Correct answer is D.
http://www.html5tutorial.info/html5-range.php
0
0
None of the Options are valid.
The right answer would have to be:
0
0
input type=”range” name=”rating” min=”1″ max=”10″ default”=”5″
0
0
Ah darn I mean
input type=”range” name=”rating” min=”1″ max=”10″ value”=”5″
0
0