Practice
Resources
Contests
Online IDE
New
Free Mock
Scaler
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
Scaler
Explore Offerings by SCALER

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

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.

Important Links

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?

Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler
Sat transparent 640a34d454880bf68e3bfdf33f2389f2214043f59ad18b4c7f7b114e834fb257.svg

Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Personalised feedback report with solutions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Real life Interview Questions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Identify exact topics to improve

Your feedback is important to help us improve.
Free Mock Assessment
Fill up the details for personalised experience.
All fields are mandatory
Current Employer *
Enter company name *
Graduation Year *
Select an option *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Graduation Year *
Graduation Year *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
*Enter the expected year of graduation if you're student
Current Employer *
Company Name *
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test