Learn HTML MCQs

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

How can you make a numbered list?

1) <ol>

2) <ul>

3) <li>

4) <dl>

Answer : <ol>

Which tag is used to define an unordered list in HTML?

1) <ul>

2) <li>

3) <ol>

4) <list>

Answer : <ul>

Which is the correct HTML element for inserting a background image?

1) <body style="background-image:url(image.jpg)">

2) <background img="image.jpg">

3) <bg image="image.jpg">

4) <background-url=image.jpg>

Answer : <body style="background-image:url(image.jpg)">

Which HTML attribute is used to define inline styles?

1) style

2) class

3) id

4) css

Answer : style

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

1) <select>

2) <dropdown>

3) <list>

4) <menu>

Answer : <select>

Which input type defines a slider control in HTML?

1) range

2) slider

3) control

4) scroll

Answer : range

Which tag is used to embed a video in HTML?

1) <video>

2) <embed>

3) <movie>

4) <media>

Answer : <video>

How can you create a text area in HTML?

1) <textarea>

2) <input type="textarea">

3) <text>

4) <field>

Answer : <textarea>

Which element defines a paragraph in HTML?

1) <p>

2) <par>

3) <pg>

4) <section>

Answer : <p>

How do you comment in HTML?

1) <!-- This is a comment -->

2) <comment> This is a comment </comment>

3) // This is a comment

4) # This is a comment

Answer : <!-- This is a comment -->