Learn HTML MCQs

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

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

1) <section>

2) <div>

3) <aside>

4) <article>

Answer : <article>

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

1) <music>

2) <audio>

3) <sound>

4) <mp3>

Answer : <audio>

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

1) <tr>

2) <thead>

3) <td>

4) <th>

Answer : <thead>

Which HTML tag is used to create a definition list?

1) <dt>

2) <list>

3) <dl>

4) <dd>

Answer : <dl>

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

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

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

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

4) <a newtab="true">

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

Which HTML element is used to group related options in a dropdown list?

1) <select>

2) <optgroup>

3) <option>

4) <dropdown>

Answer : <optgroup>

What is the correct HTML element for specifying a header for a document or section?

1) <h1>

2) <header>

3) <head>

4) <section>

Answer : <header>

Which HTML element is used to create a numbered list?

1) <ol>

2) <ul>

3) <li>

4) <list>

Answer : <ol>

Which HTML tag is used to embed an object in a webpage?

1) <embed>

2) <object>

3) <media>

4) <iframe>

Answer : <object>

How can you make a text italic in HTML?

1) <i>

2) <em>

3) <strong>

4) <italic>

Answer : <em>