Learn HTML MCQs

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

Which HTML element is used to create a dropdown list?

1) <select>

2) <list>

3) <dropdown>

4) <option>

Answer : <select>

What is the correct HTML tag to make text bold?

1) <b>

2) <strong>

3) <bold>

4) <em>

Answer : <b>

Which HTML element is used to specify a block of navigation links?

1) <nav>

2) <footer>

3) <header>

4) <section>

Answer : <nav>

Which HTML attribute specifies that an input field must be filled out?

1) required

2) mandatory

3) validate

4) checked

Answer : required

How do you specify a comment in HTML?

1) <!-- comment -->

2) <comment>

3) // comment

4) <! comment>

Answer : <!-- comment -->

Which element is used for a self-contained content in HTML?

1) <article>

2) <section>

3) <div>

4) <aside>

Answer : <article>

What is the correct HTML element for playing an audio file?

1) <audio>

2) <sound>

3) <music>

4) <mp3>

Answer : <audio>

Which HTML tag is used to create a header for a table?

1) <th>

2) <tr>

3) <thead>

4) <td>

Answer : <th>

Which HTML tag is used to create a definition list?

1) <dl>

2) <dt>

3) <dd>

4) <list>

Answer : <dl>

How do you create a hyperlink that opens in a new window in HTML?

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

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

3) <link href="URL" target="_new">

4) <a newtab="true">

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