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 define the character encoding
B. To link to an external stylesheet
C. To set the page title
D. To specify the HTML version and standards mode
Answer: Option D
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
In internet technology, what is the term used for the quantitative capacity of a wired or wireless network link to transmit data over a specific period?
A. Frequency
B. Latency
C. Bandwidth
D. Velocity

Correct Answer: Option C


Explanation:
Bandwidth measures the maximum volume of data that can be transferred across an internet connection in a given unit of time, typically calculated in Mbps or Gbps.

This question belongs to: Computer Internet and Web Technologies
Question #2
When an email is sent, which protocol is responsible for transferring the message from the client's email application to the outgoing mail server?
A. IMAP
B. SMTP
C. FTP
D. POP3

Correct Answer: Option B


Explanation:
SMTP (Simple Mail Transfer Protocol) is used for sending and transferring email messages from a client application to a mail server, and between mail servers.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which type of web architecture asset functions as a highly lightweight text data-interchange format, structured using basic key-value pairs that are exceptionally easy for JavaScript to parse natively?
A. CSS formatting style frameworks
B. Unencrypted text files
C. JSON (JavaScript Object Notation)
D. SMTP route configurations

Correct Answer: Option C


Explanation:
JSON is a language-independent, text-based format for storing and exchanging data. Its simple key-value structure makes it a popular choice for web APIs and modern web applications.

This question belongs to: Computer Internet and Web Technologies