Learn HTML MCQs

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

How do you add an audio file in HTML?

1) <audio>

2) <sound>

3) <music>

4) <voice>

Answer : <audio>

Which HTML tag is used to define a table in HTML?

1) <tab>

2) <tr>

3) <td>

4) <table>

Answer : <table>

How can you create a text area in HTML?

1) <input>

2) <textarea>

3) <textbox>

4) <form>

Answer : <textarea>

Which HTML attribute is used to define a link’s destination?

1) link

2) href

3) src

4) dest

Answer : href

What is the correct HTML element for inserting a line break?

1) <lb>

2) <br>

3) <line>

4) <break>

Answer : <br>

Which HTML element is used to create a dropdown list?

1) <option>

2) <select>

3) <list>

4) <dropdown>

Answer : <select>

What is the correct HTML tag to make text bold?

1) <b>

2) <strong>

3) <italic>

4) <em>

Answer : <strong>

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

1) <footer>

2) <header>

3) <nav>

4) <section>

Answer : <nav>

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

1) mandatory

2) required

3) validate

4) checked

Answer : required

How do you specify a comment in HTML?

1) <!-- comment -->

2) <comment>

3) // comment

4) <! comment>

Answer : <!-- comment -->