HTML Basics MCQs
HTML MCQs : This section focuses on the "Basics" of Html. These Multiple Choice Questions (mcq) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. .HTML stands for
A. Hyper Text Markup Language
B. Hyper Text Machine Language
C. Hyper Technical Machine Language
D. None of these
View Answer
Ans : A
Explanation: HTML is an acronym for Hyper Text Markup Language.
2. In which year HTML was invented?
A. 1990
B. 1991
C. 1992
D. 1993
View Answer
Ans : D
Explanation: The first version of HTML was written by Tim Berners-Lee in 1993.
3. Which of the following is not correct with reference to HTML?
A. DOCTYPE refers to document type.
B. DOCTYPE is not case sensitive.
C. DOCTYPE is used only once at the start of the document.
D. None of the above
View Answer
Ans : D
Explanation: DOCTYPE in HTML has all the above 3 properties.
4. HTML tags are represented within
A. <>
B. ()
C. []
D. {}
View Answer
Ans : A
Explanation: HTML tags are enclosed with <>. eg, paragraph tag is written as
5. Drag and drop feature is supported in
A. HTML5
B. HTML4
C. Both HTML4 and HTML5
D. It is not supported at all.
View Answer
Ans : A
Explanation: Drag and drop is supported in HTML5 but not in HTML4.
6. What if one does not use the doctype in the starting of HTML document?
A. Browser finds the document in quirky mode
B. Browser finds a document in standard mode
C. Browser stops working
D. Browser crashes after showing the page View Answer
View Answer
Ans : A
Explanation: If the browser finds <!doctype html> in the starting of an HTML document it sets the document in standard mode but if one does not use a doctype, the browser goes to quirky mode.
7. Which element is design to wrap a single piece of information?
A. <time>
B. <nav>
C. <footer>
D. <header>
View Answer
Ans : A
Explanation: <time> tag wrap single piece of information i.e. it defines date, month and year.
8. The __________ attribute sets the text direction as related to the lang attribute.
A. lang
B. sub
C. dir
D. ds
View Answer
Ans : C
Explanation: The dir attribute specifies the text direction of the element's content. List of directory files is given by dir tag which is not supported in HTML5.
9. To create HTML page, you need
A. Web browser
B. text editor
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: To create HTML page, you need Web browser and text editor.
10. Who is Known as the father of World Wide Web (WWW)?
A. Robert Cailliau
B. Tim Thompson
C. Charles Darwin
D. Tim Berners-Lee
View Answer
Ans : D
Explanation: Tim Berners-Lee is Known as the father of World Wide Web (WWW).
Also check :
Discussion