Learn HTML MCQs

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

What is the correct HTML element for defining an audio file?

1) <audio>

2) <sound>

3) <media>

4) <mp3>

Answer : <audio>

Which tag is used to define a text area for user input?

1) <textarea>

2) <input>

3) <text>

4) <field>

Answer : <textarea>

What does the `<fieldset>` tag do in a form?

1) Groups related elements

2) Styles elements

3) Defines a section

4) Creates a border

Answer : Groups related elements

Which attribute is used to specify a default option in a drop-down list?

1) selected

2) default

3) active

4) chosen

Answer : selected

How do you define an external CSS file in HTML?

1) <link rel="stylesheet" href="style.css">

2) <stylesheet href="style.css">

3) <style src="style.css">

4) <css href="style.css">

Answer : <link rel="stylesheet" href="style.css">

What does the `<strong>` tag do in HTML?

1) Indicates strong importance

2) Makes text bold

3) Creates a heading

4) Styles text

Answer : Indicates strong importance

Which HTML element is used to define an image?

1) <img>

2) <image>

3) <pic>

4) <src>

Answer : <img>

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

1) A paragraph

2) A header

3) A footer

4) A section

Answer : A paragraph

How do you create a hyperlink in HTML?

1) <a href="url">Link</a>

2) <link href="url">Link</link>

3) <hyperlink url="url">Link</hyperlink>

4) <url link="url">Link</url>

Answer : <a href="url">Link</a>

Which HTML element is used to define a footer for a document?

1) <footer>

2) <bottom>

3) <end>

4) <foot>

Answer : <footer>