Chapter 3
Chapter 3
MCQ 2:
Question: Which HTML tag is used to create a heading?
A) <p>
B) <h1>
C) <div>
D) <span>
Answer: B) <h1>
MCQ 3:
Question: What is the purpose of the <hr> tag in HTML?
A) To create a hyperlink
B) To insert a horizontal line
C) To format text
D) To create a table
Answer: B) To insert a horizontal line
MCQ 4:
Question: How do you display text in bold in HTML?
A) <i>
B) <b>
C) <u>
D) <strong>
Answer: B) <b>
MCQ 5:
Question: Which tag is used to create a paragraph in HTML?
A)
B) <p>
C) <h2>
D) <blockquote>
Answer: B) <p>
MCQ 6:
Question: What is the purpose of the <img> tag in HTML?
A) To insert an image
B) To create a hyperlink
C) To format text
D) To create a table
Answer: A) To insert an image
MCQ 7:
Question: Which attribute of the <img> tag is used to provide alternate text for an
image?
A) src
B) alt
C) title
D) width
Answer: B) alt
MCQ 8:
Question: How do you create a hyperlink in HTML?
MCQ 9:
Question: What is the purpose of the <table> tag in HTML?
A) To create a list
B) To insert an image
C) To create a table
D) To format text
Answer: C) To create a table
MCQ 10:
Question: Which tag is used to define the table header in HTML?
A) <th>
B) <tr>
C) <td>
D) <thead>
Answer: A) <th>
MCQ 11:
Question: How do you create a line break in HTML?
A)
B) <lb>
C) <p>
D) <hr>
Answer: A)
MCQ 12:
Question: Which attribute is used to specify the style of an HTML element?
A) class
B) style
C) id
D) type
Answer: B) style
MCQ 13:
Question: What is the purpose of the <form> tag in HTML?
A) To create a table
B) To create a form for user input
C) To insert an image
D) To format text
Answer: B) To create a form for user input
MCQ 14:
Question: Which input type is used to create a text input field in a form?
A) <input type="text">
B) <input type="button">
C) <input type="checkbox">
D) <input type="radio">
Answer: A) <input type="text">
MCQ 15:
Question: How do you create a submit button in an HTML form?
A) <button type="submit">Submit</button>
B) <input type="submit">
C) <input type="button">
D) <button type="button">Submit</button>
Answer: B) <input type="submit">
MCQ 16:
Question: What is the purpose of the <label> tag in HTML?
A) To create a hyperlink
B) To define a label for an <input> element
C) To insert an image
D) To create a table
Answer: B) To define a label for an <input> element
MCQ 17:
Question: Which tag is used to create an unordered list in HTML?
A) <ol>
B) <ul>
C) <li>
D) <dl>
Answer: B) <ul>
MCQ 18:
Question: How do you create an ordered list in HTML?
A) <ol>
B) <ul>
C) <li>
D) <dl>
Answer: A) <ol>
MCQ 19:
Question: Which tag is used to define a list item in HTML?
A) <ol>
B) <ul>
C) <li>
D) <dl>
Answer: C) <li>
MCQ 20:
Question: What is the purpose of the <div> tag in HTML?
MCQ 21:
Question: Which attribute is used to link an external CSS file in HTML?
A) href
B) src
C) rel
D) type
Answer: A) href
MCQ 22:
Question: What is the purpose of the <span> tag in HTML?
MCQ 23:
Question: How do you create a comment in HTML?
MCQ 24:
Question: Which tag is used to embed a video in HTML?
A) <video>
B) <audio>
C) <embed>
D) <source>
Answer: A) <video>
MCQ 25:
Question: What is the purpose of the <audio> tag in HTML?
MCQ 26:
Question: Which attribute is used to specify the source file for a video in HTML?
A) src
B) href
C) type
D) alt
Answer: A) src
MCQ 27:
Question: How do you create a dropdown list in an HTML form?
A) <select>
B) <option>
C) <input type="dropdown">
D) <dropdown>
Answer: A) <select>
MCQ 28:
Question: Which tag is used to define the options in a dropdown list?
A) <select>
B) <option>
C) <input>
D) <dropdown>
Answer: B) <option>
MCQ 29:
Question: What is the purpose of the <nav> tag in HTML?
MCQ 30:
Question: Which attribute is used to specify the character encoding for an HTML
document?
A) charset
B) encoding
C) language
D) type
Answer: A) charset