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 clear the input value
B. To validate the input automatically
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 component of an electronic mail client application layout allows users to draft, view, and read individual mail items cleanly?
A. Mail User Agent (MUA)
B. File Transfer Gateway
C. Mail Transfer Agent (MTA)
D. Domain Name System Engine

Correct Answer: Option A


Explanation:
The Mail User Agent (MUA) is the frontend user interface software application (like Microsoft Outlook or Gmail app) where users interact with their email.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which of the following is a protocol used for sending email notifications from a web server to an administrator?
A. SNMP
B. SMTP
C. FTP
D. HTTP

Correct Answer: Option B


Explanation:
SMTP is used for sending email, including notifications from web servers to administrators.

This question belongs to: Computer Internet and Web Technologies
Question #3
What does the acronym HTML stand for?
A. HighTech Markup Language
B. HyperText Model Language
C. HyperText Markup Language
D. Hyperlink Text Model Language

Correct Answer: Option C


Explanation:
HTML stands for HyperText Markup Language, the standard markup language for creating web pages and web applications.

This question belongs to: Computer Internet and Web Technologies