HTML MCQ Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

By OnlineInterviewQuestions.

com
HTML MCQ Quiz & Online Test

Take HTML Quiz To test your Knowledge


Below is the few HTML MCQ test that checks your basic knowledge of HTML Framework. This HTML Test
contains 20 Multiple Choice Questions with 4 options. You have to select the right answer to a question.

Also, Read the Best HTML interview questions.

Q1. Correct HTML Tag For The Largest Heading Is

A. <h6>
B. <heading>
C. <h1>
D. <head>

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

A. Action
B. Method
C. name
D. url

Q3. HTML Is A Subset Of

A. SGMT
B. SGMD
C. SGML
D. None Of These

Q4. ALL HTML Tags Are Must Be Enclosed In?

A. ? And !
B. < And >
C. { And }
D. # And #

Q5. The BODY Tag Is Usually Used After

A. EM Tag
B. TITLE Tag
C. HEAD Tag
D. HTML Tag

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

A. <italic>
B. <it>
C. <i>
D. <il>

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

A. BODY
B. BASE
C. HEAD
D. None Of The Above

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

A. Videos
B. Images
C. None Of The Above
D. Animated Effects

Q9. To Start A List Using Circles, Use

A. <ul Type="circle">
B. <ul Type="round">
C. <ul ="round">
D. <ul "round">
Q10. Which Is Not A Property Of Attribute Behaviour Of &lt;Marquee> Tag?

A. Blur
B. Scroll
C. Alternate
D. Slide

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

A. Input Files
B. Output Files
C. A Manifest File
D. HTML File

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

A. <unscript>
B. <script>
C. Both Above
D. None Of The Above

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

A. <checkbox>
B. <Input type = "checkbox">
C. <cb>
D. <Input type = "checkbox">

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

A. Sub
B. Lang
C. Ds
D. Dir

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

A. Dir
B. Title
C. Tooltip
D. None of the above

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

A. .nav-justified
B. .nav-stacked
C. .nav Nav-pills
D. .nav.navbar-nav

Q17. Which Of The Following Will Create Hamburger Menu?

A. Icon-prev
B. Icon-bar
C. Img-circle
D. Icon-next

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

A. Modal-title
B. Modal-open
C. Modal-lg
D. Modal-sm

Q19. Which Of The Following Aligns Media Objects?

A. Media
B. Medilist
C. Mediobject
D. Medibody

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

A. Help-block
B. Has-success
C. Has-feedback
D. Has-warning

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

A. <h1>
B. <em>
C. <strong>
D. <h2>

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

A. XHTML 1.0 Frameset


B. XHTML 1.0 Transitional
C. XHTML 1.0 Strict
D. None Of The Mentioned

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

A. UTF-16
B. UTF-32
C. UTF-8
D. Both UTF-8 And UTF-32

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

A. Jumbotron
B. Label
C. Label-danger
D. Item

Q25. HTML Is What Type Of Language ?

A. Scripting Language
B. Markup Language
C. Programming Language
D. Network Protocol
Q26. HTML Uses

A. Fixed Tags Defined By The Language


B. User Defined Tags
C. Pre-specified Tags
D. Tags Only For Linking

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

A. Attribute Name
B. Class Name
C. Tag Name
D. None Of The Mention

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

A. B
B. Bdi
C. Bdo
D. Base

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

A. Rubytxt
B. Ruby
C. Rt
D. R

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

A. Keygen
B. Ins
C. Key
D. Command
Q31. Apart From &lt;b> Tag, What Other Tag Makes Text Bold ?

A. <emp>
B. <black>
C. <fat>
D. <strong>

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

A. Robert Cailliau
B. Tim Berners-Lee
C. Tim Thompson
D. Charles Darwin

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

A. <dl>
B. <list>
C. <ol>
D. <ul>

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

A. <html>
B. <head>
C. <title>
D. <document>

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

A. Picture
B. Img
C. Src
D. Image

Q36. HTML Web Pages Can Be Read And Rendered By


A. Compiler
B. Server
C. Web Browser
D. Interpreter

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

A. Curly
B. Round
C. Squart
D. Angle

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

A. Ondata
B. Onhaschange
C. Oninput
D. Onloadeddata

Q39. Intensity Of A Color Can Be Described Through

A. Hue
B. Saturation
C. Lightness
D. Grayscale

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

A. Href
B. Hlink
C. Src
D. Src-link

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

A. <a Href="a@b">
B. <mail>a@b
C. <a Href="mailto:[email protected]">
D. <mail Href="a@b">

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

A. <a Href="http://www.example.com">example
B. <a Name="">A</a>
C. <a Url="http://www.example.com">example</a>
D. <a>B</a>

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

A. <break />
B. <br />
C. <lb />
D. <nbsp>

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

A. Window.localStorage
B. Window.sessionStorage
C. Window.localSession
D. Both A & B

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

A. <dt>
B. <dd>
C. <li>
D. <dl>

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

A. <html>.....
B. <!DOCTYPE Html>
C. <body>.....
D. <p>.....
Q47. If You Want To Change The Text Colour To Red Which Of The Following Tags
Will You Use?

A. <Body Text = Red>


B. <Body Bgcolour = Red>
C. <Body Colour = Red>
D. None Of The Above
Please Visit OnlineInterviewquestions.com to download more pdfs

You might also like