Learn HTML MCQs

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

How do you specify an inline style in an HTML element?

1) style="property:value;"

2) inline="property:value;"

3) style="value;"

4) style="property;"

Answer : style="property:value;"

Which element is used to define a table cell that is a header?

1) <th>

2) <td>

3) <tr>

4) <thead>

Answer : <th>

What does the `<title>` tag define?

1) The title of the document

2) The header of the document

3) The main content

4) The metadata

Answer : The title of the document

What is the correct HTML for creating an unnumbered list?

1) <ul><li>Item</li></ul>

2) <ol><li>Item</li></ol>

3) <list><item>Item</item></list>

4) <ul><item>Item</item></ul>

Answer : <ul><li>Item</li></ul>

How can you make a numbered list in HTML?

1) <ol>

2) <ul>

3) <list>

4) <numbered>

Answer : <ol>

Which HTML element is used to embed a video?

1) <media>

2) <video>

3) <movie>

4) <embed>

Answer : <video>

What is the correct HTML for creating a search box?

1) <input type="search">

2) <input type="text" search>

3) <search>

4) <input type="textbox">

Answer : <input type="search">

Which tag is used to create a drop-down list in HTML?

1) <dropdown>

2) <list>

3) <select>

4) <option>

Answer : <select>

What is the purpose of the `<form>` tag?

1) To create a form for user input

2) To display data

3) To create links

4) To define a list

Answer : To create a form for user input

Which attribute specifies the method used to send form data?

1) action

2) method

3) send

4) post

Answer : method