RGB Web Tech

RGB Web Tech

HTML - Multiple Choice Questions (MCQs)

1. What does HTML stand for?

a). Hyper Text Markup Language

b). Hyperlinks and Text Markup Language

c). Hyperlinks and Text Markup Language

d). Hyperlinking Text Marking Language

2. Which of the following is a use of HTML?

a). Creating spreadsheets

b). Programming applications

c). Designing web pages

d). Editing videos

3. HTML web pages are read and rendered by which of the following?

a). Compilers

b). Servers

c). Web browsers

d). Database systems

4. HTML web pages are read and rendered by which of the following?

a). HTML 4.01

b). XHTML

c). HTML5

d). HTML 3.2

5. What is the significance of the DOCTYPE declaration in HTML?

a). It links HTML with CSS

b). It is required for creating HTML forms

c). It defines the HTML version being used

d). It enables JavaScript in HTML

6. What will be displayed in the browser for the following HTML code? < html >< body >< h1 > Hello World < /h1 >< /body >< /html >

a). A blank page

b). Text Hello World in paragraph format

c). Text Hello World in heading format

d). An error message

7. Which tag is used to define the title of a document in HTML?

a). < body >

b). < title >

c). < head >

d). < br >

8. Which of the following tags are mandatory in an HTML document?

a). < body > and < title >

b). < head > and < body >

c). < header > and < footer >

d). < p > and < h1 >

9. What is the function of the < head > element in an HTML document?

a). Contains the document\'s body

b). Is displayed in the browser\'s viewing

c). Includes metadata, title, and scripts

d). Defines the footer of the page

10. In HTML, which tag is used to create a paragraph?

a). < p >

b). < par >

c). < text >

d). < div >

11. Which of the following elements are considered (block − level) elements in HTML?

a). < img > and < a >

b). < p > and < div >

c). < span > and < i >

d). < b > and < strong >

12. What is the primary purpose of the < body > tag in an HTML document?

a). Contains the document metadata

b). Defines the title of the document

c). Holds the content visible to the user

d). Specifies external resources

13. What will be displayed on the web page for this HTML code : < html >< head >< title > Page Title < /title >< /head >< body > Hello World < /body >< /html >?

a). Page Title

b). Hello World

c). Both Page Title and Hello World

d). Nothing

14. Which HTML element is used to define the footer of an HTML document?

a). < footer >

b). < bottom >

c). < end >

d). < foot >

15. Identify the mistake in this HTML code : < html >< head >< title > My Page < /title >< body >< p > Welcome to my page < /p >< /body >< /head >< /html >

a). Misplaced < title > tag

b). Missing < body > tag

c). Incorrect closing order of tags

d). Extra < head > tag

16. Spot the error in this HTML document structure : < html >< head >< title > Document < /title >< /head >< body >< h1 > Heading < /p >< p > Paragraph < /h1 >< /body >< /html >

a). Incorrect nesting of tags

b). Missing < title > tag

c). Extra < html > tag

d). Wrong order of elements

17. Which tag is used to make text bold in HTML?

a). < em >

b). < strong >

c). < mark >

d). < bold >

18. What is the purpose of the < em > tag in HTML?

a). To underline text

b). To emphasize text

c). To change text color

d). To create a paragraph

19. Which HTML tag is used to represent a thematic break in the content?

a). < break >

b). < line >

c). < hr >

d). < divider >

20. How is a subscript text displayed using HTML tags?

a). < sub >

b). < sup >

c). < small >

d). < low >

21. Which tag is used to display text in a monospaced (typewriter − style) font in HTML?

a). < monospace >

b). < code >

c). < typewriter >

d). < pre >

22. Which HTML tag is used to underline text?

a). < u >

b). < underline >

c). < ul >

d). < line >

23. What does the < abbr > tag represent in HTML?

a). Abbreviation or acronym

b). Address block

c). Article body

d). Audio broadcast

24. Which tag is used to define marked or highlighted text in HTML?

a). < mark >

b). < highlight >

c). < em >

d). < strong >

25. Which HTML element is used to define a part of text in an alternate voice or mood?

a). < data >

b). < time >

c). < mark >

d). < small >

26. What is the result of this HTML code : < p > This is < b > important < /b > text. < /p >?

a). This is important text

b). This is < b > important < /b > text

c). This is IMPORTANT text

d). This is important Text

27. Which tag is used to create a line break in an HTML document?

a). < break >

b). < lb >

c). < br >

d). < newline >

28. Find the error in this HTML snippet : < p > Welcome to < b > our website < /p >< /b >

a). Missing end tag for < b >

b). Incorrect nesting of < b > and < p >

c). Missing start tag for < b >

d). No error

29. Identify the mistake : < html >< body >< p > HTML is < i > very < /i >< b > interesting. < /p >< /body >< /html >

a). < i > tag not closed

b). < b > tag not closed

c). < p > tag not closed

d). No mistake

30. Spot the error in : < p > HTML is < em > fun < /u > to learn < /p >

a). < em > tag not closed

b). < u > tag not closed

c). Incorrect tag pairing

d). No error

Written by RGB Web Tech

Multiple Choice Questions

Comprehensive MCQ collection covering diverse topics such as PHP, Python, Ruby, Rust, Java, Android, iOS, Flutter, Big Data, AI, Machine Learning, Cyber Security, Digital Marketing, and more. Enhance your skills with quizzes on programming, data science, app development, CMS, robotics, design tools, and software testing.