FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WORLD WIDE WEB

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which “declaration” tag should be at the top of every HTML page?
A
<title>
B
<head>
C
<!DOCTYPE html>
D
<html>
Explanation: 

Detailed explanation-1: -All HTML documents must start with a <!DOCTYPE> declaration.

Detailed explanation-2: -The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in. This ensures that the web page is parsed the same way by different web browsers. In HTML 4.01, the DOCTYPE declaration refers to a document type definition (DTD).

Detailed explanation-3: -HTML5 doctype is written as <! ’DOCTYPE’ keyword is not case sensitive.

Detailed explanation-4: -Explanation: The correct syntax of HTML5 doctype is <! doctype html>, doctype is the very first thing to write in HTML5.

Detailed explanation-5: -A DOCTYPE declaration appears at the top of a web page before all other elements. According to the HTML specification or standards, every HTML document requires a valid document type declaration to insure that your web pages are displayed the way they are intended to be displayed.

There is 1 question to complete.