Welcome to Interviewbit, help us create the best experience for you!

Currently, You are a:

Few details about your education

College/University *
Enter the name of your college
Branch *
Year of completion *

Few details about your education

College/University *
Enter the name of your college
Branch *
Year of completion *

Few details about your career...

Current Company *
Enter company name
Experience *

You're all set!

Begin your success journey!

Sign Up using
Full name *
Email *
Password *

By creating an account, I acknowledge that I have read and agree to InterviewBit’s Terms and Privacy Policy .

Welcome back!

Log In using
Email *
Password *

HTML MCQ With Answers

Begin your success journey!

Sign Up using
Full name *
Email *
Password *

By creating an account, I acknowledge that I have read and agree to InterviewBit’s Terms and Privacy Policy .

Welcome back!

Log In using
Email *
Password *

HTML is an abbreviation for HyperText Markup Language. It is the standard go-to language to make web pages and is used to make the general structure of a website/webpage. HTML informs the web browser on how to display the content of the website when the user loads it. HTML consists of a series of elements, which label pieces of content as “heading”, “paragraph”, “link”, etc.

A standard HTML file is shown below:

<!DOCTYPE html>
<html>
<head>
<title>Title Page</title>
</head>
<body>

<h1>Heading Line</h1>
<p>Paragraph Lines</p>

</body>
</html>

From the above code, the components of an  HTML file document is as explained below:

  • <!DOCTYPE html> acts as a declaration that this document is an HTML5 document.
  • <html> element is the root element of the HTML page.
  • <head> element contains metadata for the HTML page.
  • <title> tag produces a title for the webpage we are currently rendering(our HTML page).
  • <body> defines the body of the document, and is basically a container for all the contents which is visible in the HTML page like hyperlinks, headings, titles, paragraphs, etc.
  • <h1> tag is basically a heading. The ‘1’ represents the size of the heading, 1 being the largest and 6 being the smallest.
  • <p> tag basically defines a paragraph.

The general syntax for an HTML element is defined by a start tag, an end tag, and some content enclosed within it. For some HTML elements, the end tag is not needed.

HTML MCQs

1. 

What does the abbreviation HTML stand for?

2. 

How many sizes of headers are available in HTML by default?

3. 

What is the smallest header in HTML by default?

4. 

What are the types of lists available in HTML?

5. 

How to create an ordered list in HTML?

6. 

HTML files are saved by default with the extension?

7. 

We enclose HTML tags within?

8. 

What is the effect of the <b> tag?

9. 

Which of the following is correct about HTML?

10. 

How to display preformatted text in HTML?

11. 

Which of the following tags doesn’t require a closing tag?

12. 

What is meant by an empty tag in HTML?

13. 

What are the attributes used to change the size of an image?

14. 

Which attribute is used to provide a unique name to an HTML element?

15. 

What is the function of the HTML style attribute?

16. 

Which of the following is the correct syntax for using the HTML style attribute?

17. 

Which HTML element is used to define description data?

18. 

Which of the following properties is used to change the font of text?

19. 

How are quotations defined in HTML?

20. 

What tag is used to render an image on a webpage?

21. 

Apart from <i> tag, which of the following tag is used to render a text in italics?

22. 

What is the correct syntax to write an HTML comment?

23. 

Colors are defined in HTML using?

24. 

Which property is used to set colors in HTML?

25. 

What are the types of unordered lists in HTML?

26. 

Which property is used to set border colors in HTML?

27. 

Which of the following things are necessary to create an HTML page?

28. 

Which of the following tags is used to indicate the page’s start and endpoints?

29. 

Which of the following is true about HTML tags?

30. 

Which HTML tag is called the root element of an HTML document?

31. 

How is black color represented in terms of RGB values?

32. 

What does the Alpha value in RGBA represent?

33. 

What does the Alpha value of 0.0 represent?

34. 

How to set a font for a whole page?

35. 

The CSS inside HTML elements used alongside style attribute is called?

36. 

Which of the following colors contain equal amounts of RBG?

37. 

What is the speciality about the <small> and <big> tags in HTML?

38. 

Which of the following tags is used to add a row to a table in HTML?

40. 

If a background image is smaller than the screen on which it is being displayed, what will occur on the webpage?

41. 

What are the properties of block-level elements?

42. 

Which of the following are examples of block-level elements in HTML?

43. 

How many characters can be written in 1KB?

44. 

What are some valid character sets available?

45. 

The default value of the BORDER attribute is?

46. 

What are those objects called which are used for storing data on the client provided by the HTML local storage?

47. 

The most basic part of any HTML page is?

48. 

What is the select tag used for?

49. 

What are the main components of the front end of any working website?

50. 

Which HTML tag is used to set up a Javascript-like client-side scripting language?

Your feedback is important to help us improve.