MCQs Of Class 14
Building a Basic Web Page Structure
1. What is the purpose of the <head> section in an HTML document?
Answer: D) Both A and C
2. What is the correct HTML tag for inserting an image?
Answer: B) <img>
3. Which HTML element is used to create a hyperlink?
Answer: B) <a>
4. Which attribute is required for the <img> tag?
Answer: A) src
5. Which of the following HTML tags is used to create a list of items?
Answer: D) All of the above
6. What does the <footer> tag represent in an HTML document?
Answer: B) The closing part of the page with footer content
7. What is the default display value of the <div> element?
Answer: A) Block
8. Which tag is used to define the title of an HTML document?
Answer: A) <title>
9. Which of the following tags is used to define a paragraph in HTML?
Answer: A) <p>
10. What is the purpose of the <nav> element in HTML?
Answer: A) To define a navigation menu
11. Which tag is used to create a form in HTML?
Answer: B) <form>
12. Which attribute is used to link a form to a server-side script in HTML?
Answer: A) action
13. Which attribute is used to specify a form’s submission method?
Answer: A) method
14. Which tag is used to define an ordered list in HTML?
Answer: A) <ol>
15. What does the <header> tag define in HTML?
Answer: C) The introductory content or logo
16. Which element is used to define a section of a page in HTML?
Answer: B) <section>
17. Which tag is used to define a hyperlink in HTML?
Answer: A) <a>
18. What is the default alignment of text inside a <div> element?
Answer: A) Left
19. What tag is used to define an inline section of a document in HTML?
Answer: A) <span>
20. How do you define a comment in HTML?
Answer: A) <!-- comment -->
21. What is the purpose of the <main> element in HTML?
Answer: A) It defines the main content of the document
22. Which tag is used to display a table in HTML?
Answer: A) <table>
23. Which tag is used to define a row in a table?
Answer: A) <tr>
24. What is the purpose of the <meta> tag in the HTML document?
Answer: A) To add additional information about the page
25. Which HTML element is used to display a numbered list?
Answer: B) <ol>
26. How do you create a hyperlink that opens a new tab in HTML?
Answer: A) <a href="url" target="_blank">
27. Which attribute is used to specify the destination URL of a link?
Answer: B) href
28. Which of the following is a valid way to create an image with a title in HTML?
Answer: D) Both A and B
29. Which of the following tags is used to define a container for other elements in HTML?
Answer: D) All of the above
30. Which HTML element is used to define a button?
Answer: A) <button>
31. What is the role of the alt attribute in the <img> tag?
Answer: B) To provide alternative text if the image cannot be displayed
32. Which tag is used to define the main heading of a page?
Answer: A) <h1>
33. What is the correct HTML tag for defining a form input field?
Answer: B) <input>
34. How do you create a drop-down list in HTML?
Answer: A) <select>
35. Which tag is used to define a table header in HTML?
Answer: B) <th>
36. What is the default value of the display property for the <p> element in CSS?
Answer: A) block
37. How do you create a line break in HTML?
Answer: B) <br>
38. What does the <strong> tag represent in HTML?
Answer: C) Strong importance or bold text
39. Which tag is used to define a block of text in HTML?
Answer: D) All of the above
40. Which HTML element is used to define a section that represents content related to a specific topic?
Answer: B) <article>
41. Which tag is used to insert a comment in an HTML document?
Answer: A) <!-- comment -->
42. Which HTML tag is used to define a horizontal rule (line)?
Answer: A) <hr>
43. What is the correct HTML tag for embedding audio in a web page?
Answer: A) <audio>
44. How do you specify the size of an image in HTML?
Answer: C) Both A and B
45. Which of the following elements can contain text, images, and other HTML elements?
Answer: D) All of the above
46. Which tag is used to define the main heading of a page?
Answer: A) <h1>
47. Which tag is used to group inline elements in HTML?
Answer: B) <span>
48. What is the correct way to create a link in HTML that opens in a new tab?
Answer: B) <a href="url" target="_blank">
49. Which HTML element defines the structure for the entire webpage content?
Answer: A) <body>
50. Which tag is used to define a footer for a document or section in HTML?
Answer: A) <footer>
I'll continue the MCQs in the next message.
4o mini
You said:
yes
ChatGPT said:
ChatGPT
Here is the continuation of the MCQs for your HTML topic:
51. Which of the following is used to specify the character encoding for an HTML document?
Answer: A) <meta charset="UTF-8">
52. How do you add a background image in HTML?
Answer: C) <body background="image.jpg">
53. Which tag is used to specify a table row in HTML?
Answer: B) <tr>
54. What does the <head> element contain in an HTML document?
Answer: B) Metadata, title, and links to external resources
55. How can you make text bold in HTML?
Answer: D) Both A and B
56. What is the default value of the position property in CSS?
Answer: D) static
57. Which HTML attribute is used to define the destination of a link?
Answer: A) href
58. How do you make an image a clickable link in HTML?
Answer: A) <a href="url"><img src="image.jpg"></a>
59. How do you define an ordered list in HTML?
Answer: A) <ol>
60. Which of the following tags is used to create a checkbox input?
Answer: A) <input type="checkbox">
61. Which HTML element is used to define a table header?
Answer: A) <th>
62. How do you create a drop-down list in HTML?
Answer: B) <select>
63. Which tag is used to display a horizontal line in HTML?
Answer: B) <hr>
64. What does the alt attribute in an image tag specify?
Answer: C) Text displayed if the image cannot be loaded
65. How do you define a comment in HTML?
Answer: C) <!-- comment -->
66. What is the purpose of the <link> tag in HTML?
Answer: B) To link external CSS stylesheets to an HTML document
67. How do you define a table cell in HTML?
Answer: A) <td>
68. What is the correct HTML tag for adding a subtitle in a video?
Answer: B) <track>
69. Which attribute is used to open a link in a new tab?
Answer: B) target="_blank"
70. How do you make a text italic in HTML?
Answer: D) Both A and B
71. Which tag is used to define a list item?
Answer: A) <li>
72. How do you make a text underlined in HTML?
Answer: A) <u>
73. Which HTML tag is used to add a video on a webpage?
Answer: B) <video>
This concludes the MCQs for your HTML topic. Let me know if you need further assistance!
4o mini
You said:
yes
ChatGPT said:
ChatGPT
Here is the continuation of the MCQs:
74. Which HTML tag is used to add a table in a webpage?
Answer: A) <table>
75. What does the <div> tag represent in HTML?
Answer: A) It groups block-level content together
76. How can you define a background color for a web page in HTML?
Answer: B) <body bgcolor="#ffcc00">
77. How do you make a text blink in HTML?
Answer: D) Text cannot blink in HTML (HTML doesn't support blinking text natively anymore)
78. Which tag is used to create a paragraph in HTML?
Answer: A) <p>
79. What is the function of the <meta> tag in HTML?
Answer: A) It defines metadata about the HTML document, like keywords and description
80. Which HTML tag is used to create a checkbox?
Answer: C) <input type="checkbox">
81. What does the <em> tag do in HTML?
Answer: C) Emphasizes text (usually italicized by default)
82. How do you create a numbered list in HTML?
Answer: B) <ol>
83. What does the <head> tag define in HTML?
Answer: B) Metadata and links to external files (like stylesheets and scripts)
84. Which of the following is a semantic HTML element?
Answer: C) <header>
85. What tag is used for creating an unordered list?
Answer: A) <ul>
86. How can you include a CSS file in an HTML document?
Answer: A) <link rel="stylesheet" href="style.css">
87. Which of the following is not a valid HTML tag?
Answer: D) <footers>
88. Which tag is used to specify a table header?
Answer: A) <th>
89. How can you create a hyperlink in HTML?
Answer: B) <a href="http://example.com">Link</a>
90. How can you make a list item a link in HTML?
Answer: B) <li><a href="url">Link</a></li>
91. Which HTML tag is used to define the title of a document?
Answer: A) <title>
92. Which of the following tags is used to create a form input?
Answer: A) <input>
93. How do you specify an image source in HTML?
Answer: A) src="image.jpg"
94. Which tag is used to define a definition list in HTML?
Answer: A) <dl>
95. What does the <link> tag in HTML define?
Answer: B) Defines an external stylesheet
96. Which tag is used to define a section in HTML?
Answer: A) <section>
97. How do you create a simple button in HTML?
Answer: D) Both A and B
98. What is the purpose of the <nav> tag in HTML?
Answer: A) It defines a navigation menu
99. What is the correct HTML tag for inserting a line break?
Answer: C) <br>
100. Which of the following elements is used to group multiple form elements in HTML?
Answer: A) <fieldset>
This concludes the 100 MCQs for your HTML topic. These questions cover a variety of concepts that will help students understand the basic structure and elements used in HTML. Let me know if you need further assistance!