MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the purpose of <!DOCTYPE html>?
A
provides the web browser with security information
B
instructs the browser where to look for your CSS files
C
Allows programmers to link to files in-line
D
Tells the web browser what language to expect
Explanation: 

Detailed explanation-1: -The doctype is used for two things, by different kinds of software: Web browsers use it to determine which rendering mode they should use (more on rendering modes later). Markup validators look at the doctype to determine which rules they should check the document against (more on that later as well).

Detailed explanation-2: -Definition and Usage All HTML documents must start with a <!DOCTYPE> declaration. The declaration is not an HTML tag. It is an “information” to the browser about what document type to expect.

Detailed explanation-3: -Any HTML document must start with a Document Type Declaration (abbreviated doctype) in the first line, which tells the browser the version of HTML used in the page.

Detailed explanation-4: -The Doctype is not an element or tag, it lets the browser know about the version of or standard of HTML or any other markup language that is being used in the document.

There is 1 question to complete.