Learn HTML MCQs

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

Which tag is used to define a clickable button in HTML?

1) <button>

2) <click>

3) <input type="button">

4) <a>

Answer : <button>

Which HTML tag is used to display a scalar measurement within a known range?

1) <meter>

2) <progress>

3) <range>

4) <input type="meter">

Answer : <meter>

Which element is used to define the title of a document in HTML?

1) <title>

2) <head>

3) <meta>

4) <header>

Answer : <title>

What is the purpose of the <nav> tag in HTML?

1) Defines navigation links

2) Defines a section of the document

3) Defines metadata

4) Defines a footer

Answer : Defines navigation links

Which attribute is used to define the URL of a link in HTML?

1) href

2) src

3) link

4) url

Answer : href

How do you define a table header in HTML?

1) <th>

2) <thead>

3) <header>

4) <td>

Answer : <th>

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

1) <td>

2) <th>

3) <tr>

4) <table>

Answer : <td>

What does the `alt` attribute in the <img> tag specify?

1) Alternative text for an image

2) Title of the image

3) Image source

4) Image description

Answer : Alternative text for an image

Which HTML element defines the title of a table?

1) <caption>

2) <title>

3) <thead>

4) <th>

Answer : <caption>

Which HTML element is used to embed sound content?

1) <audio>

2) <sound>

3) <embed>

4) <bgsound>

Answer : <audio>