Learn HTML MCQs

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

How do you add a video in HTML?

1) <video>

2) <movie>

3) <media>

4) <vid>

Answer : <video>

Which tag is used to create a list item in an ordered list?

1) <li>

2) <ol>

3) <ul>

4) <list>

Answer : <li>

What does the `<iframe>` tag define in HTML?

1) An inline frame

2) An image frame

3) A picture frame

4) A document frame

Answer : An inline frame

Which HTML tag is used to define a hyperlink?

1) <a>

2) <link>

3) <href>

4) <url>

Answer : <a>

What is the correct HTML tag for creating a text input field?

1) <input type="text">

2) <input text>

3) <input field="text">

4) <textbox>

Answer : <input type="text">

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) <table>

2) <tab>

3) <tr>

4) <td>

Answer : <table>

How can you create a text area in HTML?

1) <textarea>

2) <textbox>

3) <input type="text">

4) <form>

Answer : <textarea>

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

1) href

2) link

3) src

4) dest

Answer : href

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

1) <br>

2) <lb>

3) <break>

4) <line>

Answer : <br>