Learn HTML MCQs

Prepare HTML MCQs (Multiple choice Questions) for exam and job interviews.

Which HTML element is used to specify a footer for a document?

1) <footer>

2) <bottom>

3) <foot>

4) <end>

Answer : <footer>

How do you create a checkbox in HTML?

1) <check>

2) <input type="checkbox">

3) <input type="check">

4) <checkbox>

Answer : <input type="checkbox">

Which tag is used to define an option in a dropdown list?

1) <select>

2) <dropdown>

3) <option>

4) <choice>

Answer : <option>

What is the correct HTML element to define emphasized text?

1) <i>

2) <em>

3) <strong>

4) <italic>

Answer : <em>

How can you specify a link that opens in a new tab?

1) <a href="URL" newtab="true">

2) <a href="URL" target="_blank">

3) <link href="URL" newtab>

4) <a target="_newtab">

Answer : <a href="URL" target="_blank">

Which HTML attribute is used to specify the URL of a linked document?

1) src

2) link

3) href

4) url

Answer : href

What does the `<input>` tag in HTML do?

1) Creates a button

2) Defines an input field

3) Defines a paragraph

4) Defines a link

Answer : Defines an input field

Which HTML element is used to define a description list?

1) <dd>

2) <dl>

3) <dt>

4) <list>

Answer : <dl>

Which HTML tag is used to create a table header?

1) <thead>

2) <tr>

3) <td>

4) <th>

Answer : <th>

What is the correct syntax to add an image in HTML?

1) <img href="image.jpg">

2) <image src="image.jpg">

3) <img src="image.jpg">

4) <src="image.jpg">

Answer : <img src="image.jpg">