Here are 20 HTML multiple-choice questions (MCQs) with their answers:
### 1. What does HTML stand for?
- a) Hyper Text Markup Language
- b) Home Tool Markup Language
- c) Hyperlinks and Text Markup Language
- Answer: a) Hyper Text Markup Language
### 2. Which HTML tag is used to define an internal style sheet?
- a)
- b)
- c)
- d)
- Answer: c)
### 3. Which HTML attribute is used to define inline styles?
- a)
- b)
- c)
- d)
- Answer: a)
### 4. Which is the correct HTML element for inserting a line break?
- a)
- b)
- c)
- d)
- Answer: a)
### 5. Which HTML element is used to define the title of a document?
- a)
- b)
- c)
- d)
- Answer: c)
### 6. How can you make a numbered list?
- a)
- b)
- c)
- d)
- Answer: b)
### 7. Which HTML element is used to create a hyperlink?
- a)
- b)
- c)
- d)
- Answer: a)
### 8. Which attribute is used to specify that an input field must be filled out?
- a)
- b)
- c)
- d)
- Answer: a)
### 9. What is the correct HTML for adding a background color?
- a)
- b)
- c)
- d)
- Answer: c)
### 10. Which HTML element is used to specify a footer for a document or section?
- a)
- b)
- c)
- d)
- Answer: b)
### 11. Which of the following is the correct HTML5 declaration?
- a)
- b)
- c)
- d)
- Answer: a)
### 12. Which tag is used to define an interactive field where users can enter data?
- a)
- b)
- c)
- d)
- Answer: d)
### 13. Which tag is used to display a picture in a webpage?
- a)
- b)
- c)
- d)
- Answer: b)
### 14. Which tag is used to create a dropdown list in a form?
- a)
- b)
- c)
- d)
- Answer: b)
### 15. Which HTML element is used to display preformatted text?
- a)
- b)
- c)
- d)
- Answer: a)
### 16. **Which of these elements are all
- a)
- b)
- c)
- d)
Answer:r:** c)
### How can you open a link in a new tab/browser window?w?**
- a)
- b)
- c)
- d)
Answer:r:** b)
### What is the correct HTML for creating a checkbox?x?**
- a)
- b)
- c)
- d)
Answer:r:** b)
### Which HTML element is used to define important text?t?**
- a)
- b)
- c)
- d)
Answer:r:** a)
### Which tag is used to create a list that displays items with bullets?s?**
- a)
- b)
- c)
- d)
Answer:r:** a)
### 1. What does HTML stand for?
- a) Hyper Text Markup Language
- b) Home Tool Markup Language
- c) Hyperlinks and Text Markup Language
- Answer: a) Hyper Text Markup Language
### 2. Which HTML tag is used to define an internal style sheet?
- a)
<css> - b)
<script> - c)
<style> - d)
<link> - Answer: c)
<style>### 3. Which HTML attribute is used to define inline styles?
- a)
style - b)
class - c)
font - d)
styles - Answer: a)
style### 4. Which is the correct HTML element for inserting a line break?
- a)
<br> - b)
<break> - c)
<lb> - d)
<hr> - Answer: a)
<br>### 5. Which HTML element is used to define the title of a document?
- a)
<meta> - b)
<head> - c)
<title> - d)
<header> - Answer: c)
<title>### 6. How can you make a numbered list?
- a)
<ul> - b)
<ol> - c)
<dl> - d)
<list> - Answer: b)
<ol>### 7. Which HTML element is used to create a hyperlink?
- a)
<a> - b)
<link> - c)
<href> - d)
<hyperlink> - Answer: a)
<a>### 8. Which attribute is used to specify that an input field must be filled out?
- a)
required - b)
placeholder - c)
validate - d)
formvalidate - Answer: a)
required### 9. What is the correct HTML for adding a background color?
- a)
<body bg="yellow"> - b)
<background>yellow</background> - c)
<body style="background-color: yellow;"> - d)
<bg color="yellow"> - Answer: c)
<body style="background-color: yellow;">### 10. Which HTML element is used to specify a footer for a document or section?
- a)
<bottom> - b)
<footer> - c)
<section> - d)
<end> - Answer: b)
<footer>### 11. Which of the following is the correct HTML5 declaration?
- a)
<!DOCTYPE html> - b)
<!DOCTYPE HTML5> - c)
<DOCTYPE html> - d)
<!DOCTYPE HTML 5.0> - Answer: a)
<!DOCTYPE html>### 12. Which tag is used to define an interactive field where users can enter data?
- a)
<enter> - b)
<textarea> - c)
<form> - d)
<input> - Answer: d)
<input>### 13. Which tag is used to display a picture in a webpage?
- a)
<image> - b)
<img> - c)
<picture> - d)
<src> - Answer: b)
<img>### 14. Which tag is used to create a dropdown list in a form?
- a)
<list> - b)
<select> - c)
<input> - d)
<dropdown> - Answer: b)
<select>### 15. Which HTML element is used to display preformatted text?
- a)
<pre> - b)
<code> - c)
<format> - d)
<text> - Answer: a)
<pre>### 16. **Which of these elements are all
<table> elements?**- a)
<table> <tr> <tt> - b)
<thead> <body> <tr> - c)
<table> <tr> <td> - d)
<table> <tr> <footer> Answer:r:** c)
<table> <tr> <td>### How can you open a link in a new tab/browser window?w?**
- a)
<a href="url" new> - b)
<a href="url" target="_blank"> - c)
<a href="url" target="new"> - d)
<a href="url" new-tab> Answer:r:** b)
<a href="url" target="_blank">### What is the correct HTML for creating a checkbox?x?**
- a)
<check> - b)
<input type="checkbox"> - c)
<checkbox> - d)
<input type="check"> Answer:r:** b)
<input type="checkbox">### Which HTML element is used to define important text?t?**
- a)
<strong> - b)
<i> - c)
<important> - d)
<b> Answer:r:** a)
<strong>### Which tag is used to create a list that displays items with bullets?s?**
- a)
<ul> - b)
<ol> - c)
<li> - d)
<list> Answer:r:** a)
<ul>❤6👍1
These questions cover a broad range of basic HTML concepts that are commonly tested in interviews.
👍1