HTML MCQ Questions

HTML MCQ Questions are designed to help you test your knowledge and understanding of HTML (Hypertext Markup Language). These multiple-choice questions cover a wide range of topics including HTML tags, elements, attributes, forms, tables, and web page structure. Whether you're a beginner learning the basics or an experienced developer refining your skills, these MCQs provide a great way to assess your expertise. Ideal for exam preparation, interviews, or personal learning, these questions will help solidify your understanding of HTML and web development fundamentals.

Q1. What does HTML stand for?

Correct Answer: B

HTML stands for Hyper Text Markup Language.

Q2. Which HTML tag is used to define the largest heading?

Correct Answer: C

defines the largest heading.

Q3. Which HTML tag is used to insert a line break?

Correct Answer: B


is used to insert a line break.

Q4. Which tag is used to display an image in HTML?

Correct Answer: A

is used to insert an image.

Q5. Which attribute is used in <img> tag to specify image source?

Correct Answer: B

src attribute defines the image source.

Q6. Which tag is used to create a hyperlink in HTML?

Correct Answer: A

In HTML, the (anchor) tag is used to create hyperlinks that allow users to navigate from one webpage or resource to another. The destination of the hyperlink is specified using the href attribute inside the tag. For example, Visit Blog creates a clickable link. The tag is mainly used to connect external resources such as CSS files, while and are not valid HTML tags for creating hyperlinks. Therefore, A. is the correct answer.

Q7. What is the correct HTML tag for inserting a line?

Correct Answer: C


inserts a horizontal line.

Q8. Which attribute provides alternative text for images?

Correct Answer: C

alt attribute provides alternate text if image cannot load.

Q9. Which tag is used to define a paragraph in HTML?

Correct Answer: C

is used for paragraphs.

Q10. Which HTML element is used for bold text?

Correct Answer: C

and are used for bold text.

Q11. Which tag is used to create a numbered list?

Correct Answer: C

    defines an ordered (numbered) list.

Q12. Which tag is used to create a bulleted list?

Correct Answer: C

    defines an unordered (bulleted) list.

Q13. Which HTML element is used to play video files?

Correct Answer: C

Q14. Which HTML element is used to play audio files?

Correct Answer: C

Q15. Which HTML attribute is used to open a link in new tab?

Correct Answer: C

target="_blank" opens link in new tab.

Q16. Which element is used to insert an inline style in HTML?

Correct Answer: A