Learn HTML MCQs
Prepare HTML MCQs (Multiple choice Questions) for exam and job interviews.
Which tag is used to specify a section in a document?
1) <section>
2) <article>
3) <div>
4) <aside>
Answer : <section>
Which tag is used to create a horizontal line in HTML?
1) <line>
2) <br>
3) <hline>
4) <hr>
Answer : <hr>
How can you make a text italic in HTML?
1) <em>
2) <strong>
3) <i>
4) <italic>
Answer : <em>
Which element is used to create a drop-down list?
1) <list>
2) <dropdown>
3) <select>
4) <option>
Answer : <select>
Which attribute is used to define an alternative text for an image in case the image cannot be displayed?
1) text
2) alt
3) src
4) title
Answer : alt
How do you add a video in HTML?
1) <video>
2) <movie>
3) <media>
4) <vid>
Answer : <video>
Which tag is used to create a list item in an ordered list?
1) <li>
2) <ol>
3) <ul>
4) <list>
Answer : <li>
What does the `<iframe>` tag define in HTML?
1) An image frame
2) A picture frame
3) An inline frame
4) A document frame
Answer : An inline frame
Which HTML tag is used to define a hyperlink?
1) <link>
2) <href>
3) <a>
4) <url>
Answer : <a>
What is the correct HTML tag for creating a text input field?
1) <input text>
2) <input type="text">
3) <textbox>
4) <input field="text">
Answer : <input type="text">