What is the function of the 'autofocus' attribute in an HTML input field? MCQ with Answer and Explanation

What is the function of the 'autofocus' attribute in an HTML input field?
A. To validate the input automatically
B. To clear the input value
C. To automatically give focus to the input when the page loads
D. To set the input to read-only
Answer: Option C
Solution (By JKSSB Mock Tests)
The autofocus attribute indicates that the input should automatically receive focus when the page loads, improving usability.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
Which top-level domain designation (TLD) is reserved exclusively for official government entities and administrative bodies?
A. .org
B. .net
C. .gov
D. .com

Correct Answer: Option C


Explanation:
The '.gov' top-level domain is restricted solely to verified government agencies, institutional departments, and state-level operations.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which HTTP method is typically used to submit form data?
A. OPTIONS
B. HEAD
C. POST
D. GET

Correct Answer: Option C


Explanation:
The POST method is used to send data to the server to create or update a resource, commonly used in form submissions.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the function of the 'Default Gateway' setting in a computer's local network configuration panel?
A. To act as the routing address that local data packets use to exit the local area network and access external networks like the internet
B. To clear out temporary cookie tracker entries automatically
C. To serve as a high-speed email storage facility
D. To convert graphical web pages into text files

Correct Answer: Option A


Explanation:
The default gateway is the node or router on a computer network that serves as an access point to another network when an IP address does not match any local routes.

This question belongs to: Computer Internet and Web Technologies