Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
HTML document declaration - <!DOCTYPE html>
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
HTML
Q. Which of the following is a declaration for an HTML document?
- Published on 25 Aug 15
a.
<!DOCTYPE html>
b.
<html>.....</html>
c.
<body>.....</body>
d.
<p>.....</p>
ANSWER: <!DOCTYPE html>
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
Discussion
Nirja Shah
-Posted on 10 Nov 15
<!DOCTYPE html>
- This declaration must be the very first thing in the HTML document even before the <html> tag.
- It is not an HTML tag but it is an instruction given to the web browser about the version of the HTML page.
- This declaration refers to as a DTD in HTML 4.01 as it was based on SGML. The DTD specifies the rules for the markup language so that the browsers render the content correctly.
- HTML5 is not based on SGML and hence it does not require a reference to a DTD.
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲