MCQs Of Class 14 - Building a Basic Web Page Structure

Rashmi Mishra
0

MCQs Of Class 14 

 Building a Basic Web Page Structure

1. What is the purpose of the <head> section in an HTML document?

A) To include metadata and title for the page
B) To include visible content like headings and paragraphs
C) To link external CSS files
D) Both A and C

Answer: D) Both A and C


2. What is the correct HTML tag for inserting an image?

A) <image>
B) <img>
C) <picture>
D) <src>

Answer: B) <img>


3. Which HTML element is used to create a hyperlink?

A) <link>
B) <a>
C) <url>
D) <href>

Answer: B) <a>


4. Which attribute is required for the <img> tag?

A) src
B) alt
C) href
D) title

Answer: A) src


5. Which of the following HTML tags is used to create a list of items?

A) <ol>
B) <ul>
C) <li>
D) All of the above

Answer: D) All of the above


6. What does the <footer> tag represent in an HTML document?

A) The navigation links
B) The closing part of the page with footer content
C) The main content of the page
D) The header information

Answer: B) The closing part of the page with footer content


7. What is the default display value of the <div> element?

A) Block
B) Inline
C) Flex
D) Grid

Answer: A) Block


8. Which tag is used to define the title of an HTML document?

A) <title>
B) <head>
C) <meta>
D) <body>

Answer: A) <title>


9. Which of the following tags is used to define a paragraph in HTML?

A) <p>
B) <div>
C) <h1>
D) <span>

Answer: A) <p>


10. What is the purpose of the <nav> element in HTML?

A) To define a navigation menu
B) To define the header of the document
C) To add multimedia content
D) To create sections in the page

Answer: A) To define a navigation menu


11. Which tag is used to create a form in HTML?

A) <input>
B) <form>
C) <textarea>
D) <submit>

Answer: B) <form>


12. Which attribute is used to link a form to a server-side script in HTML?

A) action
B) method
C) type
D) src

Answer: A) action


13. Which attribute is used to specify a form’s submission method?

A) method
B) action
C) target
D) id

Answer: A) method


14. Which tag is used to define an ordered list in HTML?

A) <ol>
B) <ul>
C) <li>
D) <list>

Answer: A) <ol>


15. What does the <header> tag define in HTML?

A) The navigation links
B) The main heading of the page
C) The introductory content or logo
D) The footer content

Answer: C) The introductory content or logo


16. Which element is used to define a section of a page in HTML?

A) <header>
B) <section>
C) <article>
D) <footer>

Answer: B) <section>


17. Which tag is used to define a hyperlink in HTML?

A) <a>
B) <link>
C) <url>
D) <anchor>

Answer: A) <a>


18. What is the default alignment of text inside a <div> element?

A) Left
B) Right
C) Center
D) Justified

Answer: A) Left


19. What tag is used to define an inline section of a document in HTML?

A) <span>
B) <div>
C) <section>
D) <p>

Answer: A) <span>


20. How do you define a comment in HTML?

A) <!-- comment -->
B) <comment>
C) /* comment */
D) // comment

Answer: A) <!-- comment -->


21. What is the purpose of the <main> element in HTML?

A) It defines the main content of the document
B) It adds metadata to the page
C) It creates a header for the page
D) It defines the footer of the document

Answer: A) It defines the main content of the document


22. Which tag is used to display a table in HTML?

A) <table>
B) <tr>
C) <td>
D) All of the above

Answer: A) <table>


23. Which tag is used to define a row in a table?

A) <tr>
B) <td>
C) <th>
D) <table>

Answer: A) <tr>


24. What is the purpose of the <meta> tag in the HTML document?

A) To add additional information about the page
B) To insert the page title
C) To create a hyperlink
D) To style the page

Answer: A) To add additional information about the page


25. Which HTML element is used to display a numbered list?

A) <ul>
B) <ol>
C) <list>
D) <li>

Answer: B) <ol>


26. How do you create a hyperlink that opens a new tab in HTML?

A) <a href="url" target="_blank">
B) <a href="url" target="_new">
C) <a href="url" open="true">
D) <a href="url" newtab="true">

Answer: A) <a href="url" target="_blank">


27. Which attribute is used to specify the destination URL of a link?

A) src
B) href
C) alt
D) link

Answer: B) href


28. Which of the following is a valid way to create an image with a title in HTML?

A) <img src="image.jpg" title="Image Title">
B) <img src="image.jpg" alt="Image Title">
C) <image src="image.jpg" alt="Image Title">
D) Both A and B

Answer: D) Both A and B


29. Which of the following tags is used to define a container for other elements in HTML?

A) <div>
B) <section>
C) <article>
D) All of the above

Answer: D) All of the above


30. Which HTML element is used to define a button?

A) <button>
B) <input>
C) <submit>
D) <click>

Answer: A) <button>


31. What is the role of the alt attribute in the <img> tag?

A) To specify the image’s location
B) To provide alternative text if the image cannot be displayed
C) To specify the width of the image
D) To specify the link for the image

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?

A) <h1>
B) <title>
C) <header>
D) <heading>

Answer: A) <h1>


33. What is the correct HTML tag for defining a form input field?

A) <field>
B) <input>
C) <text>
D) <form>

Answer: B) <input>


34. How do you create a drop-down list in HTML?

A) <select>
B) <dropdown>
C) <list>
D) <option>

Answer: A) <select>


35. Which tag is used to define a table header in HTML?

A) <thead>
B) <th>
C) <header>
D) <tableheader>

Answer: B) <th>


36. What is the default value of the display property for the <p> element in CSS?

A) block
B) inline
C) inline-block
D) none

Answer: A) block


37. How do you create a line break in HTML?

A) <break>
B) <br>
C) <line>
D) <hr>

Answer: B) <br>


38. What does the <strong> tag represent in HTML?

A) Emphasis
B) Italics
C) Strong importance or bold text
D) A block-level element

Answer: C) Strong importance or bold text


39. Which tag is used to define a block of text in HTML?

A) <p>
B) <div>
C) <blockquote>
D) All of the above

Answer: D) All of the above


40. Which HTML element is used to define a section that represents content related to a specific topic?

A) <section>
B) <article>
C) <div>
D) <aside>

Answer: B) <article>


41. Which tag is used to insert a comment in an HTML document?

A) <!-- comment -->
B) // comment
C) /* comment */
D) # comment

Answer: A) <!-- comment -->


42. Which HTML tag is used to define a horizontal rule (line)?

A) <hr>
B) <rule>
C) <line>
D) <separator>

Answer: A) <hr>


43. What is the correct HTML tag for embedding audio in a web page?

A) <audio>
B) <sound>
C) <music>
D) <embed>

Answer: A) <audio>


44. How do you specify the size of an image in HTML?

A) width and height attributes
B) style attribute with CSS
C) Both A and B
D) None of the above

Answer: C) Both A and B


45. Which of the following elements can contain text, images, and other HTML elements?

A) <article>
B) <section>
C) <div>
D) All of the above

Answer: D) All of the above


46. Which tag is used to define the main heading of a page?

A) <h1>
B) <h2>
C) <h3>
D) <h6>

Answer: A) <h1>


47. Which tag is used to group inline elements in HTML?

A) <div>
B) <span>
C) <section>
D) <header>

Answer: B) <span>


48. What is the correct way to create a link in HTML that opens in a new tab?

A) <a href="url" target="new">
B) <a href="url" target="_blank">
C) <a href="url" newtab="true">
D) <link href="url" target="_new">

Answer: B) <a href="url" target="_blank">


49. Which HTML element defines the structure for the entire webpage content?

A) <body>
B) <head>
C) <main>
D) <section>

Answer: A) <body>


50. Which tag is used to define a footer for a document or section in HTML?

A) <footer>
B) <footersection>
C) <bottom>
D) <sectionfooter>

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?

A) <meta charset="UTF-8">
B) <meta name="charset" content="UTF-8">
C) <charset="UTF-8">
D) <meta encoding="UTF-8">

Answer: A) <meta charset="UTF-8">


52. How do you add a background image in HTML?

A) background-image: url('image.jpg');
B) <img src="image.jpg" background>
C) <body background="image.jpg">
D) <background src="image.jpg">

Answer: C) <body background="image.jpg">


53. Which tag is used to specify a table row in HTML?

A) <td>
B) <tr>
C) <th>
D) <table>

Answer: B) <tr>


54. What does the <head> element contain in an HTML document?

A) The main content of the webpage
B) Metadata, title, and links to external resources
C) The body content of the webpage
D) The script for interactivity

Answer: B) Metadata, title, and links to external resources


55. How can you make text bold in HTML?

A) <b>
B) <strong>
C) <em>
D) Both A and B

Answer: D) Both A and B


56. What is the default value of the position property in CSS?

A) absolute
B) fixed
C) relative
D) static

Answer: D) static


57. Which HTML attribute is used to define the destination of a link?

A) href
B) src
C) alt
D) target

Answer: A) href


58. How do you make an image a clickable link in HTML?

A) <a href="url"><img src="image.jpg"></a>
B) <a href="url"><image src="image.jpg"></image></a>
C) <link href="url"><img src="image.jpg"></link>
D) <img src="image.jpg" link="url">

Answer: A) <a href="url"><img src="image.jpg"></a>


59. How do you define an ordered list in HTML?

A) <ol>
B) <ul>
C) <li>
D) <dl>

Answer: A) <ol>


60. Which of the following tags is used to create a checkbox input?

A) <input type="checkbox">
B) <input type="check">
C) <checkbox>
D) <input check="true">

Answer: A) <input type="checkbox">


61. Which HTML element is used to define a table header?

A) <th>
B) <thead>
C) <tableheader>
D) <head>

Answer: A) <th>


62. How do you create a drop-down list in HTML?

A) <list>
B) <select>
C) <dropdown>
D) <menu>

Answer: B) <select>


63. Which tag is used to display a horizontal line in HTML?

A) <line>
B) <hr>
C) <divider>
D) <break>

Answer: B) <hr>


64. What does the alt attribute in an image tag specify?

A) The source of the image
B) The width of the image
C) Text displayed if the image cannot be loaded
D) The height of the image

Answer: C) Text displayed if the image cannot be loaded


65. How do you define a comment in HTML?

A) // comment
B) /* comment */
C) <!-- comment -->
D) # comment

Answer: C) <!-- comment -->


66. What is the purpose of the <link> tag in HTML?

A) To define an external JavaScript file
B) To link external CSS stylesheets to an HTML document
C) To define a hyperlink to another webpage
D) To create a clickable link to an image

Answer: B) To link external CSS stylesheets to an HTML document


67. How do you define a table cell in HTML?

A) <td>
B) <tr>
C) <th>
D) <table>

Answer: A) <td>


68. What is the correct HTML tag for adding a subtitle in a video?

A) <video subtitle>
B) <track>
C) <sub>
D) <subtitle>

Answer: B) <track>


69. Which attribute is used to open a link in a new tab?

A) target="_self"
B) target="_blank"
C) target="new"
D) open="true"

Answer: B) target="_blank"


70. How do you make a text italic in HTML?

A) <i>
B) <em>
C) <strong>
D) Both A and B

Answer: D) Both A and B


71. Which tag is used to define a list item?

A) <li>
B) <ul>
C) <ol>
D) <item>

Answer: A) <li>


72. How do you make a text underlined in HTML?

A) <u>
B) <underline>
C) <i>
D) <em>

Answer: A) <u>


73. Which HTML tag is used to add a video on a webpage?

A) <movie>
B) <video>
C) <media>
D) <video-embed>

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?

A) <table>
B) <tr>
C) <td>
D) <table-row>

Answer: A) <table>


75. What does the <div> tag represent in HTML?

A) It groups block-level content together
B) It groups inline-level content together
C) It defines a division in the document for images
D) It is used to define a paragraph

Answer: A) It groups block-level content together


76. How can you define a background color for a web page in HTML?

A) <background-color="#ffcc00">
B) <body bgcolor="#ffcc00">
C) <body background-color="#ffcc00">
D) <body style="background-color: #ffcc00;">

Answer: B) <body bgcolor="#ffcc00">


77. How do you make a text blink in HTML?

A) <blink>
B) <bblink>
C) <marquee>
D) Text cannot 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?

A) <p>
B) <para>
C) <paragraph>
D) <text>

Answer: A) <p>


79. What is the function of the <meta> tag in HTML?

A) It defines metadata about the HTML document, like keywords and description
B) It creates hyperlinks
C) It specifies the font size
D) It embeds media content

Answer: A) It defines metadata about the HTML document, like keywords and description


80. Which HTML tag is used to create a checkbox?

A) <input type="check">
B) <checkbox>
C) <input type="checkbox">
D) <check>

Answer: C) <input type="checkbox">


81. What does the <em> tag do in HTML?

A) Makes text italic
B) Makes text bold
C) Emphasizes text (usually italicized by default)
D) Creates an underline for the text

Answer: C) Emphasizes text (usually italicized by default)


82. How do you create a numbered list in HTML?

A) <list>
B) <ol>
C) <ul>
D) <nl>

Answer: B) <ol>


83. What does the <head> tag define in HTML?

A) The main content of the webpage
B) Metadata and links to external files (like stylesheets and scripts)
C) The footer content of the webpage
D) The links to images

Answer: B) Metadata and links to external files (like stylesheets and scripts)


84. Which of the following is a semantic HTML element?

A) <div>
B) <span>
C) <header>
D) <section>

Answer: C) <header>


85. What tag is used for creating an unordered list?

A) <ul>
B) <ol>
C) <li>
D) <list>

Answer: A) <ul>


86. How can you include a CSS file in an HTML document?

A) <link rel="stylesheet" href="style.css">
B) <style src="style.css">
C) <css link="style.css">
D) <include src="style.css">

Answer: A) <link rel="stylesheet" href="style.css">


87. Which of the following is not a valid HTML tag?

A) <h1>
B) <header>
C) <footer>
D) <footers>

Answer: D) <footers>


88. Which tag is used to specify a table header?

A) <th>
B) <thead>
C) <td>
D) <tableheader>

Answer: A) <th>


89. How can you create a hyperlink in HTML?

A) <link href="http://example.com">
B) <a href="http://example.com">Link</a>
C) <url href="http://example.com">Link</url>
D) <hyperlink src="http://example.com">Link</hyperlink>

Answer: B) <a href="http://example.com">Link</a>


90. How can you make a list item a link in HTML?

A) <a><li>Link</li></a>
B) <li><a href="url">Link</a></li>
C) <a href="url"><li>Link</li></a>
D) <link><li>Link</li></link>

Answer: B) <li><a href="url">Link</a></li>


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

A) <title>
B) <head>
C) <meta>
D) <h1>

Answer: A) <title>


92. Which of the following tags is used to create a form input?

A) <input>
B) <forminput>
C) <textbox>
D) <form-field>

Answer: A) <input>


93. How do you specify an image source in HTML?

A) src="image.jpg"
B) <img source="image.jpg">
C) image="image.jpg"
D) <source src="image.jpg">

Answer: A) src="image.jpg"


94. Which tag is used to define a definition list in HTML?

A) <dl>
B) <list>
C) <ol>
D) <def>

Answer: A) <dl>


95. What does the <link> tag in HTML define?

A) Defines a hyperlink
B) Defines an external stylesheet
C) Defines metadata
D) Defines a script

Answer: B) Defines an external stylesheet


96. Which tag is used to define a section in HTML?

A) <section>
B) <article>
C) <div>
D) <content>

Answer: A) <section>


97. How do you create a simple button in HTML?

A) <button type="button">Click Me</button>
B) <input type="button" value="Click Me">
C) <button value="Click Me">Click Me</button>
D) Both A and B

Answer: D) Both A and B


98. What is the purpose of the <nav> tag in HTML?

A) It defines a navigation menu
B) It defines a section of the webpage
C) It defines a footer
D) It defines a header

Answer: A) It defines a navigation menu


99. What is the correct HTML tag for inserting a line break?

A) <break>
B) <newline>
C) <br>
D) <lb>

Answer: C) <br>


100. Which of the following elements is used to group multiple form elements in HTML?

A) <fieldset>
B) <group>
C) <formset>
D) <inputset>

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!

 

Tags

Post a Comment

0Comments

Post a Comment (0)