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 define the HTTP method
B. To specify the URL where form data should be sent
C. To validate form input
D. To set the character encoding
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 of the following application layer protocols is designed to be stateless, meaning the server does not retain any information about past user requests by default?
A. HTTP
B. FTP
C. SMTP
D. POP3

Correct Answer: Option A


Explanation:
HTTP (Hypertext Transfer Protocol) is a stateless protocol because each request is executed independently, without the server retaining context or session information from previous requests.

This question belongs to: Computer Internet and Web Technologies
Question #2
What does the 'src' attribute define in an HTML img tag?
A. The image height
B. The alternative text
C. The source URL of the image
D. The image width

Correct Answer: Option C


Explanation:
The 'src' (source) attribute specifies the URL of the image file to be displayed.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following is a method to prevent email spam?
A. SPF (Sender Policy Framework)
B. DKIM (DomainKeys Identified Mail)
C. All of the above
D. DMARC (Domain-based Message Authentication, Reporting & Conformance)

Correct Answer: Option C


Explanation:
SPF, DKIM, and DMARC are email authentication techniques used to prevent spoofing and reduce spam.

This question belongs to: Computer Internet and Web Technologies