HTML5 Application Development Fundamentals — Question 12
In HTML5, the autofocus attribute:
Answer options
- A. defines the cursor location when a form is first accessed.
- B. controls the movement between fields in a form.
- C. adds a default value to the field in a form.
- D. enables one field and disables all others.
Correct answer: A
Explanation
The correct answer is A because the autofocus attribute specifically sets the focus on a particular input element when the page loads, positioning the cursor there. Options B, C, and D do not accurately describe the function of the autofocus attribute, as they pertain to form navigation, default values, and field activation, respectively.