Updates

Post Top Ad

Your Ad Spot

Thursday, May 6, 2021

HTML MCQ Set-1

1. HTML document has three main elements. Which of the following is not one of them?
a. DTD
b. Head
c. Neck
d. Body

2. Which element contains the Head and Body elements inside it?
a. <!DOCTYPE>
b. <html>
c. <living being>
d. None of above
 
3. Which of the following element can’t be contained in any other elements?
a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>
 
4. Which of the following is not an element in HTML document?
a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>
 
5. Which element is also known as root element in any HTML document?
a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>
 
6. In which part of HTML document we can define meta data?
a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>
 
7. How many different type of DOCTYPE are defined for HTML documents in HTML 4?
a. 1
b. 2
c. 3
d. 4
 
8. How many different type of DOCTYPE are defined in HTML 5?
a. 1
b. 2
c. 3
d. 4
 
9. Which of the following is not a DOCTYPE in HTML 4?
a. Strict
b. Transitional
c. Transactional
d. Frameset
 
10. Head and Body elements are nested inside which element?
a. DOCTYPE
b. HTML
c. HEAD
d. All of above
 
11. What is the use of Head part of a HTML document?
a. To make the document look better
b. to provide information to browser about how document should be rendered correctly
c. to separate some part from body of document
d. All of above
 
12. Where should you write all the elements that you want them to appear in browser window?
a. <!doctype> part
b. <head> part
c. <body> part
d. Anywhere among the above three parts
 
13. Which of the following is not a part of HTML element?
a. Opening tag
b. Closing tag
c. Contents
d. None of above
 
14. Which of the following tag can’t go inside <head> element?
a. Headings
b. Titles
c. Meta Data
d. Scripts
 
15. …… tells something about the data itself and not about the content
a. Metadata
b. Contents inside head element
c. Footer
d. None of above
 
16. Which of the following is a mandatory element inside Head element for a good HTML document?
a. Metadata
b. Title
c. Scripts
d. Styles
 
17. You can define the character set used in HTML document using
a. Meta
b. Title
c. Script
d. Style
 
18. When you visit any discussion in  ICT Trends (MCQSETS) and don’t see a reply box, what does it indicate?
a. You are not logged in to ICT Trends
b. You are first time visitor to ICT Trends
c. You have already replied to this discussion
d. All of above
 
19. You can log in to ICT Trends using which of the following IDs?
a. Facebook
b. Google
c. Yahoo
d. All of above
 
20. Which element in HTML document lets you define the document is either HTML or XHTML?
a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>


Correct Answer Sheet
1 – c2 – d3 – a4 – d5 – c6 – a7 – b8 – c9 – b10 – c
11 – c12 – d13 – b14 – a15 – a16 – b17 – c18 – c