What is the function of the 'DOCTYPE' declaration in HTML? MCQ with Answer and Explanation

What is the function of the 'DOCTYPE' declaration in HTML?
A. To link to an external stylesheet
B. To specify the HTML version and standards mode
C. To set the page title
D. To define the character encoding
Answer: Option B
Solution (By JKSSB Mock Tests)
The DOCTYPE declaration tells the browser which version of HTML to use and triggers standards mode for proper rendering.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which HTTP status code indicates that a requested page has been permanently moved?
A. 400
B. 301
C. 404
D. 302

Correct Answer: Option B


Explanation:
HTTP 301 means Moved Permanently, indicating the resource has been assigned a new permanent URI. 302 is temporary redirect, 400 is Bad Request, and 404 is Not Found.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which of the following ports is the standard default port for unencrypted POP3 email retrieval?
A. 110
B. 143
C. 995
D. 25

Correct Answer: Option A


Explanation:
Port 110 is the traditional network port allocated for unencrypted Post Office Protocol version 3 (POP3) traffic.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the function of the 'Mailto' link in HTML?
A. To open the user's default email client with a pre-addressed message
B. To display a contact form
C. To send an email directly from the server
D. To create a hyperlink to an email address

Correct Answer: Option A


Explanation:
A mailto link (e.g., ) opens the default email client with the recipient's address.

This question belongs to: Computer Internet and Web Technologies