HTML MCQ Quiz & Online Test

Take HTML Quiz To test your Knowledge 

Below are few HTML MCQ test that checks your basic knowledge of HTML Framework. This HTML Test contains around 48 questions of multiple choice type with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

Also, Read Best HTML interview questions.

1. Correct HTML Tag For The Largest Heading Is

  • <h6>
  • <heading>
  • <h1>
  • <head>

2. Which of following is not an attribute of <form> tag

  • Action
  • Method
  • name
  • url
View Answer

3. HTML Is A Subset Of

  • SGML
  • SGMD
  • None Of These

4. ALL HTML Tags Are Must Be Enclosed In?

  • ? And !
  • < And >
  • { And }
View Answer

5. The BODY Tag Is Usually Used After

  • EM Tag
  • TITLE Tag
  • HEAD Tag
View Answer

6. Choose The Correct HTML Tag To Make A Text Italic

  • <italic>
  • <it>
  • <il>

7. A Much Better Approach To Establish The Base URL Is To Use The ______ Element.

  • BODY
  • BASE
  • None Of The Above

8. Gif And Jpg Are The Two Main Types Of What ?

  • Videos
  • Images
  • None Of The Above
View Answer

9. To Start A List Using Circles, Use

  • <ul Type="circle">
  • <ul Type="round">
  • <ul ="round">
View Answer

10. Which Is Not A Property Of Attribute Behaviour Of <Marquee> Tag?

  • Blur
  • Scroll
  • Slide
View Answer

11. A Simple Text File Which Tells The Browser What To Cache Is Known As A ________.

  • Input Files
  • Output Files
  • A Manifest File
View Answer

12. Which HTML Tag Is ssed to define A Client - Side Script Such as The Javascript?

  • <unscript>
  • <script>
  • Both Above
  • None Of The Above
View Answer

13. Which tag is used to create a checkbox in HTML?

  • <checkbox>
  • < Input type = "checkbox">
  • <cb>
  • < Input type = "checkbox">
View Answer

14. Which attribute sets the text direction as related to lang attribute.

  • Sub
  • Lang
  • Ds
  • Dir

15. Which html attribute is used to provide an advisory text about an element or Its contents.

  • Dir
  • Title
  • Tooltip
  • None of the above
View Answer

16. Which Of the following class centers tabs/pills?

  • .nav-justified
  • .nav-stacked
  • .nav Nav-pills
  • .nav.navbar-nav
View Answer

17. Which Of The Following Aligns Media Objects?

  • .media
  • .medilist
  • .mediobject
View Answer

18. Which Of The Following Will Create Hamburger Menu?

  • Icon-bar
  • Icon-prev
  • Img-circle
View Answer

19. Which Of The Following Is For Title Of The Modal?

  • Modal-title
  • Modal-open
  • Modal-lg
View Answer

20. Which Of The Following Aligns Media Objects?

  • Media
  • Medilist
  • Mediobject
View Answer

21. Which Of The Following Adds Checkmark Icon Inside Input?

  • Help-block
  • Has-success
  • Has-feedback
View Answer

22. Which Tag Is Used If You Want To Indicate The Importance Of The Phrase?

  • <h1>
  • <em>
  • <strong>

23. __________ Is The XML Equivalent To Strict HTML 4.01.

  • XHTML 1.0 Frameset
  • XHTML 1.0 Transitional
  • None Of The Mentioned
View Answer

24. Which Of The Following Encoding An XML Parser Assumes ?

  • UTF-16
  • UTF-32
  • Both UTF-8 And UTF-32

25. Which Of The Following Will Provide Additional Information About Something?

  • Jumbotron
  • Label
  • Label-danger

26. HTML Is What Type Of Language ?

  • Scripting Language
  • Markup Language
  • Programming Language
  • Network Protocol
View Answer

27. HTML Uses

  • Fixed Tags Defined By The Language
  • User Defined Tags
  • Pre-specified Tags
  • Tags Only For Linking
View Answer

28. All Elements Are Identified By Their __________ And Are Marked Up Using Either Start Tags And End Tags Or Self-closing Tags

  • Attribute Name
  • Class Name
  • Tag Name
  • None Of The Mention
View Answer

29. The __________ Element Represents A Span Of Text That Is Isolated From Its Surroundings For The Purposes Of Bidirectional Text Formatting

  • B
  • Bdi
  • Bdo
  • Base

30. Which Of The Following Element Marks The Ruby Text Component Of A Ruby Annotation?

  • Rubytxt
  • Ruby
  • Rt
  • R

31. Which Element Represents A Control For Generating A Public-private Key Pair?

  • Keygen
  • Ins
  • Key
  • Command

32. Apart From <b> Tag, What Other Tag Makes Text Bold ?

  • <emp>
  • <black>
  • <fat>
  • <strong>
View Answer

33. Who Is Known As The Father Of World Wide Web (WWW)?

  • Robert Cailliau
  • Tim Berners-Lee
  • Tim Thompson
  • Charles Darwin
View Answer

34. How Can You Make A Bulleted List With Numbers?

  • <dl>
  • <list>
  • <ol>
  • <ul>

35. What Should Be The First Tag In Any HTML Document?

  • <html>
  • <head>
  • <title>
  • <document>

36. What Tag Is Used To Display A Picture In A HTML Page?

  • Picture
  • Img
  • Src
  • Image

37. HTML Web Pages Can Be Read And Rendered By

  • Compiler
  • Server
  • Web Browser
  • Interpreter
View Answer

38. HTML Tags Are Surrounded By Which Type Of Brackets.

  • Curly
  • Round
  • Squart
  • Angle

39. Which Of The Following Attribute Triggers Event When An Element Gets User Input?

  • Ondata
  • Onhaschange
  • Oninput
  • Onloadeddata
View Answer

40. Intensity Of A Color Can Be Described Through

  • Hue
  • Saturation
  • Lightness
  • Grayscale
View Answer

41. HTML Links Are Defined With <a> Tag And Address Is Specified By Attribute

  • Href
  • Hlink
  • Src
  • Src-link

42. How Can You Create An E-mail Link?

  • <a Href="a@b">
  • <mail>a@b</mail>
  • <a Href="mailto:a@b.com">
  • <mail Href="a@b">
View Answer

43. What Is The Correct HTML For Creating A Hyperlink?

  • <a Href="http://www.example.com">example</a>
  • <a Name="">A</a>
  • <a Url="http://www.example.com">example</a>
  • <a>B</a>
View Answer

44. What Is The Correct HTML Tag For Inserting A Line Break?

  • <break />
  • <br />
  • <lb />
  • <nbsp>

45. Which Are The Objects Used For Storing Data On The Client Provided By The HTML Local Storage?

  • Window.localStorage
  • Window.sessionStorage
  • Window.localSession
  • Both A & B
View Answer

46. Which HTML Element Is Used To Define The Description Data?

  • <dt>
  • <dd>
  • <li>
  • <dl>

47. Which Of The Following Is A Declaration For An HTML Document?

  • <html>.....</html>
  • <!DOCTYPE Html>
  • <body>.....</body>
  • <p>.....</p>
View Answer

48. If You Want To Change The Text Colour To Red Which Of The Following Tags Will You Use?

  • < Body Text = Red>
  • < Body Bgcolour = Red>
  • < Body Colour = Red>
  • None Of The Above
View Answer

Write For Us.

Contribute the Community.