Learn HTML MCQs

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

What is the correct tag to create a hyperlink in HTML?

1) <a href="URL">

2) <link>

3) <url>

4) <anchor>

Answer : <a href="URL">

What is the purpose of the `<form>` element in HTML?

1) To collect user input

2) To define a table

3) To display a button

4) To create a link

Answer : To collect user input

Which HTML attribute specifies the size of text?

1) size

2) font

3) style

4) text-size

Answer : size

How do you make text bold in HTML?

1) <b>

2) <strong>

3) <i>

4) <em>

Answer : <b>

Which tag is used to create a dropdown list in HTML?

1) <select>

2) <option>

3) <list>

4) <dropdown>

Answer : <select>

Which HTML element is used to display a scalar measurement?

1) <meter>

2) <gauge>

3) <progress>

4) <scale>

Answer : <meter>

Which element defines the main content of a document?

1) <main>

2) <header>

3) <footer>

4) <section>

Answer : <main>

What is the purpose of the `<fieldset>` tag in HTML?

1) Groups related elements in a form

2) Defines an input field

3) Groups items in a list

4) Creates a section

Answer : Groups related elements in a form

Which attribute is used to specify the URL of an image in HTML?

1) src

2) alt

3) href

4) link

Answer : src

Which HTML element is used for creating a text area?

1) <textarea>

2) <input type="text">

3) <textbox>

4) <form>

Answer : <textarea>