What is the purpose of the 'action' attribute in an HTML form? MCQ with Answer and Explanation

What is the purpose of the 'action' attribute in an HTML form?
A. To validate form input
B. To specify the URL where form data should be sent
C. To set the character encoding
D. To define the HTTP method
Answer: Option B
Solution (By JKSSB Mock Tests)
The action attribute defines the URL to which the form's data is submitted when the form is submitted.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which parameter indicates a 'Web Cache Poisoning' exploit intent?
A. An attacker sends thousands of unwanted physical junk mail deliveries to an office building.
B. An attacker manipulates a web server's proxy cache hub into storing and serving a flawed or malicious version of a webpage to subsequent innocent users.
C. An attacker cuts a physical underwater fiber optic internet line.
D. An attacker updates a computer's local graphics driver without authorization.

Correct Answer: Option B


Explanation:
Web cache poisoning involves forcing cache servers to store invalid or malicious HTTP responses, which are then distributed to unsuspecting users requesting the same page.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which protocol is used for sending email between mail servers?
A. MIME
B. POP3
C. IMAP
D. SMTP

Correct Answer: Option D


Explanation:
SMTP is used for email transmission both from clients to servers and between servers for relaying messages.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the purpose of the 'Cookie' header in an HTTP request?
A. To send stored cookies from the client to the server
B. To set new cookies on the client
C. To check cookie existence
D. To delete cookies

Correct Answer: Option A


Explanation:
The Cookie header is used by the client to send previously stored cookies to the server, enabling session management.

This question belongs to: Computer Internet and Web Technologies