HTML MCQ Questions And Answers
1. HTML stands for ________
a) Hyper Text Markup Language
b) Holistick Technical Method Library
c) Hyper Tax Makes Line
d) None of the above
2. Who is the developer of HTML ?
a) Robert Cailliau
b) Tim Thompson
¢) Charles Darwin
d) Tim Berners-Lee
3. HTML was first proposed in the year ?
a) 1985
b) 1990
c) 1995
d) 2000
4. HTML program is saved by using the ________ extension.
a) .ht
b) .hml
c) .html
d) None of the above
5. What type of language is HTML ?
a) Scripting Language
b) Markup Language
¢) Network Protocol
d) Programming Language
6. To create HTML page, you need ?
a) Web browser
b) Text editor
c) Both a & b
d) None of these
7. HTML uses_________ ?
a) Predefined tags
b) User-defined tags
c) Fixed tags defined by the language
d) Tags for links only
8. Choose the correct HTML tag to make the text bold –
a) <bd>
b) <a>
c) <bl>
d) <b>
9. Choose the correct HTML tag to make the text italic ?
a) <i>
b) <italic>
c) <it>
d) <il>
10. Which tag is used to define a line break ?
a) <Ir>
b) <\n>
c) <br>
d) <br>…</br>
11. What does the <br> tag add to your webpage?
a) Paragraph break
b) Long break ’
c) Line break
d) None of these
12. Which of the following is a paragraph tag in HTML ?
a) <p>
b) <b>
c) <pre>
d) None of the above
13. HTML is a subset of ________
a) SGMD
b) SGMH
c) SGML
d) None
14. All HTML tags are enclosed in what?
a) #and #
b) ?and!
¢) {and}
d) <and>
15. The BODY tag is usually used after ?
a) HTML tag
b) HEAD tag
c) TITLE tag
d) EM tag
16. The first tag inside <TABLE> tag is ?
a) <TD>
b) <HEAD>
c) <CAPTION>
d) <TH>
17. Which of the following tag is used to insert a line-break in HTML?
a) <a>
b) <b>
c) <br>
d) <pre>
18. Which character is used to represent the closing of a tag in HTML ?
a) \
b) |
c) /
d) .
19. Which tag tells the browser where the page starts and stops. ?
a) <html>
b) <body>
c) <head>
d) <title>
20. In HTML, tags that include both on and off tags are called ?
a) document tag
b) comment tag
c) container tag
d) None of the above
21. Which color has the same amount of all the original colors ?
a) White, blue and gray
b) White, black and gray
c) Purple, green and blue
d) None of the above
22. A better way to establish a base URL is to use________the element.
a) HEAD
b) BODY
c) BASE
d) None of the above
23. Full form of URL is ?
a) Uniform read locator
b) Uniform research locator
c) Uniform resource locator
d) United research locator
24. Which program do you need to write HTML ?
a) HTML – development suite 4
b) A graphics program
c) Any text editor
d) All of these
25. Which of the following is the container for <tr>, <th>, and <td> ?
a) <data>
b) <table>
c) <group>
d) none of these
26. Which of the following HTML attribute is used to define inline styles ?
a) class
b) style
c) type
d) None of the above
27. What tag would you add to specify a font for your whole page?
a) <defaultfont>
b) <targetfont>
c) <basefont>
d) <font>
28. Which HTML tag produces the biggest heading?
a) <h1>
b) <h2>
c) <h4>
d) <h6>
29. The <BASE> tag is designed to appear only between ?
a) <BODY>
b) <HEAD>
c) <TITLE>
d) <PRE>
30. When is the content of a table shown ?
a) Before the border loads
b) After the table is loaded
c) In pieces as it loads
d) None of the above
31. The default value of the BORDER attribute is ?
a) 1 pixel
b) 2 pixel
c) 3 pixel
d) None of the above
32. All normal webpages consists of ________
a) Body and frameset
b) Top and bottom
c) Head and body
d) None of these
33. To created a bulleted list, use ?
a) <ol>
b) <ul>
c) <il>
d) None
34. What kind of list will <ol> tags create?
a) Numbered list
b) Unordered list
c) Bulleted list
d) None of the above
35. Increasing the cellpadding means ?
a) Increase the space between cells
b) Increase the softness of your site
c) Increase the distance between cell and content
d) All of the above
36. HTML tags are recognized by _________
a) <==>
b) <>
c) <!
d) None of the above
37. Which tag adds a paragraph break after text ?
a) <HR>
b) <BR>
c) <P>
d) <PARAGRAPH>
38. The tag for title text for rows and columns is ?
a) <TH>
b) <TD>
c) <TR>
d) None of these
39. How many characters can be written with 1 kilobyte ?
a) 1020
b) 1024
c) 1048
d) None of the above
40. The symbol used at the beginning of the HREF text is_________
a) #
b) &
0 @
d) $
41. How can you make a list that list the items with numbers ?
a) <ul>
b) <list>
c) <ol>
d) None of the above
42. Which tag can set the background color for your page ?
a) <font>
b) <body>
c) <head>
d) <title>
43. Which tag will add rows to your tables?
a) <tr>and </tr>
b) <th>and </th>
c) <td> and </td>
d) None of the above
44. Gif and jpg are the two main types of ?
a) Images
b) Animated effects
c) Videos
d) None of these
45. Which of the following is underline tag?
a) <PRE>
b) <UL>
c) <U>
d) <HR>
46. Which of the following HTML tag is a special formatting tag ?
a) <p>
b) <b>
c) <pre>
d) None of the above
47. Generally, there are
a) 4 headers in most HTML page
b) 5 headers in most HTML page
c) 6 headers in most HTML page
d) 7 headers in most HTML page
48. <P> is called ?
a) Head tag
b) Container tag
c) Paragraph tag
d) None of the above
49. The <HR> tag is used for ?
a) horizontal ruler
b) vertical ruler
c) new line text
d) new paragraph
50. Which HTML tag is used to define smaller text ?
a) <span>
b) <normal>
c) <smaller>
d) <small>
51. How, the <small> and <large> tags are special ?
a) They are for images only
b) They work on anything
c) They can be repeated
d) None of the above
52. Which HTML tag is used to define marked or highlighted text ?
a) <m>
b) <mark>
c) <highlight>
d) <highlighted>
53. If you create an HTML page in word processor ________
a) save it with ASCII text file
b) save it with binary file
c) save it with WMF file
d) all of the above
54. What is the full form of ASCII ?
a) American Standard Computer for Information Interchange
b) American Special Computer for Information Interchange
c) American Standard Code for Information Interchange
d) American Special Computer for Information Interaction
55. The most basic element of any HTML page is _______
a) Text
b) BCD text
c) ASCII text
d) None of the above
56. Which of the following HTML tag is used to display text with scrolling effect ?
a) <marquee>
b) <scroll>
c) <div>
d) None of the above
57. Which HTML tag is used to define strike a line through deleted text ?.
a) <del>
b) <delete>
c) <deleted>
d) <through>
58. What will be added using <td> and </td> tag ?
a) Cell
b) Rows
c) Columns
d) Steps
59. Which HTML tag is used to define subscript text?
a) <s>
b) <sub>
c) <subscript>
d) <subscripted>
60. Which HTML tag is used to define superscript text?
a) <sup>
b) <superscript >
c) <superscripted>
d) <s>
61. Which HTML tag is used to display the power in expression ?
a) <sup>
b) <sub>
c) <p>
d) None of the above
62. Which HTML tag is used to define a short quotation ?
a) <quotation>
b) <quote>
c) <qut>
d) <q>
63. Which tag is used to insert images in your web page ?
a) img
b) scr
c) im
d) none of these
64. Which HTML tag is used to define acronym or abbreviation ?
a) <acr>
b) <acronym>
c) <abbreviation>
d) <abbr>
65. The tag which allows some Web server search engines to search your Web page ?
a) <LINK>
b) <HEAD>
c) <SEARCH>
d) <ISINDEX>
66. Which of the following will not be found in the <head> section ?
a) <Title>
b) <Table>
c) <Metatags>
d) None of these
67. Which format usually works best for photos?
a) HTML
b) JPG
c) GIF
d) All of these
68. Which tag is used to add columns to the table ?
a) <td>
b) <tr>
c) <th>
d) <colspan>
69. Which tag tells where the link starts ?
a) <body>
b) <a>
c) <i>
d) None of the above
70. Which tag defines the HTML document’s body?
a) <bdy>
b) <body>
c) <HTML>
d) <HTMLbody>
71. The MIME text file is saved with ?
a) CSS extension
b) HMT extension
c) HTML extension
d) None of the above
72. MIME stands for ?
a) Multipurpose Internet Mail Extra
b) Multipurpose Internet Mail Extensions
c) Multipurpose Internet Mail End
d) None of these
73. To change the size of an image in HTML, use ?
a) Pliers
b) Top and bottom
c) Height and width
d) Bigger and smaller
74. What does vlink mean ?
a) active link
b) visible link
c) visited link
d) None of the above
75. All HTML documents will be basically ?
a) Graphs
b) Text
c) Pictures
d) None of these
76. Which tag contains meta information about the HTML page ?
a) <html>
b) <title>
c) <head>
d) <body>
77. How does adding a border to your image help visitors recognize it ?
a) A frame
b) A link
c) A picture
d) None of the above
78. Tag that allows you to nest other HTML tags within a description ?
a) <CAPTION>
b) <TD>
c) <TR>
d) None of the above
79. HTML tags are surrounded by what type of brackets ?
a) Curly
b) Round
c) Squart
d) Angle
80. HTML web pages can be read and rendered by?
a) Web Browser
b) Interpreter
c) Compiler
d) Server
81. Which of the following is not a browser ?
a) Microsoft Bing
b) Netscape Navigator
c) Mozilla Firefox
d) Opera
82. HTML tags with no content are called ?
a) Special tags
b) Advanced tags
c) Empty tags
d) Other tags
83. To separate single list, use
a) <ul>and </ul>
b) <ol> and </ol>
c) <li> and </li>
d) All of these
84. HTML headings are defined with the tags
a) <head1> to <head6>
b) <h1> to <h3>
c) <h1> to <h6>
d) <pl>to <p6>
85. HTML is simple than ?
a) SGML
b) CTML
c) STML
d) None of the above
86. Text within <strong> tag is displayed as ?
a) bold
b) italic
c) underline
d) list
87. Where do you put the <title> tag in HTML ?
a) Base
b) Body
c) Head
d) None of the above
88. <input> is _________
a) a format tag
b) an empty tag
c) All of the above
d) None of the above
89. The correct sequence of HTML tags to start a webpage is ______
a) head, title, html, body
b) html, body, title, head
c) html, head, title, body
d) body, head, title, html
90. Can we hide content using the comment ?
a) Yes
b) No
91. Can we hide inline content using the comment ?
a) Yes
b) No
92. Is HTML a case sensitive ?
a) Yes
b) No
93. Which attribute is used to name an element uniquely ?
a) id
b) dot
c) Class
d) All of the above
94. Which of the following is the root tag of an HTML document ?
a) <title>
b) <body>
c) <head>
d) <html>
95. Which HTML tag is used to define emphasized text ?
a) <italic>
b) <em>
c) <it>
d) <i>
96. Tags and texts that are not directly displayed on the page are written in the _____ section
a) <head>
b) <title>
c) <body>
d) <html>
97. Which tag is used to create an HTML form for user input ? )
a) <form>
b) <input>
c) <form_put>
d) <form _get>
98. <! is a ________
a) Comment tag
b) Underlined tag
¢) Underlined with italic tag
d) None of the above
99. Can we use class name with multiple HTML elements ?
a) Yes
b) No
100. Can we use id attribute with multiple HTML elements ?
a) Yes
b) No
101. What should be the first tag in any HTML document ?
a) <head>
b) <html>
c) <title>
d) <document>
102. Apart from <b> tag, which tag makes text bold?
a) <fat>
b) <black>
c) <strong>
d) <emp>
103. Which HTML tag is used to define bold text without any additional importance ?
a) <strong>
b) <bolder>
c) <bolt>
d) <b>
104. Which HTML tag is used to define text with strong importance ?
a) <strong>
b) <bold>
c) <b>
d) <bolder>
105. The tag used to create hypertext and hypermedia links is ?
a) <HR>
b) <BR>
c) <PRE>
d) <A>
`106. <a> and </a> are the tags used for ?
a) Aligning text
b) Adding image
c) Audio-voiced text
d) Adding links to your page
107. WYSIWYG stands for ?
a) What You See Is What You Get
b) What you See Is What You Gain
c) When You Start Is When You Go
d) None of the above
108. HTML tags are all ?
a) in lower case
b) in upper case
c) case sensitive
d) not case sensitive
109. Which tag is used to display picture in HTML page ?
a) picture
b) image
c) img
d) src
110. Fundamental HTML Block is known as ?
a) HTML Attribute
b) HTML Element
¢) HTML Body
d) HTML Tag
111. Which HTML tag is used to define a hyperlink ?
a) <a>
b) <h>
c) <hyperlink>
d) Both A and B
112. Which tag is used to override the current text direction ?
a) <bdi>
b) <bdo>
c) <bdr>
d) None of the above
113. Which tag is used to display a horizonal rule (horizonal line) ?
a) <br>
b) <hr>
c) <hr>..</hr>
d) <line>
114. Nested HTML elements are allowed in HTML ?
a) Yes
b) No
115. Which HTML tag is used to define the contact information for the author/owner of a document or article ?
a) <addr>
b) <contact>
c) <address>
d) <authorinfo>
116. Which HTML statement is correct to display H2O in a paragraph ?
a) <p>H<sub>2</sub>0</p>
b) <p>H<sup>2</sup>0</p>
c) <p>H<ins>2</ins>0</p>
d) <p>H<below>2</below>0</p>
117. ________ attribute specifies where to open the linked document ?
a) target
b) href
c) link
d) src
118. Which tag is used to embed an image in an HTML document ?
a) <pic>
b) <img>
c) <picture>
d) <image>
119. Which attribute specifies the path to the image?
a) href
b) link
c) src
d) All of the above
120. What is the correct syntax of <img> tag ?
a) <img src=”url”>
b) <img src=”url” alt=”alternatetext”>
c) <img src=”url” alt=”alternatetext” />
d) All of the above
121. Which attribute specifies an alternate text for the image ?
a) alt
b) alttext
c) alternate
d) All of the above
122. Which HTML tag is used to define a table?
a) <table>
b) <tables>
c) <th>
d) <tr>
123. Each table cell is defined by a tag
a) <th>… </th>
b) <cell>… </cell>
c) <tr>..</tr>
d) <td>… </td>
124. Each table header is defined by a tag
a) <cell> … </cell>
b) <td>… </td>
c) <tr>. </tr>
d) <th>…</th>
125. Each table row is defined by a tag
a) <cell> … </cell>
b) <tr>… </tr>
c) <td>… </td>
d) <th>…</th>
126. Which tag is a block-level element ?
a) <block> … </block>
b) <b>… </b>
c) <div>… </div>
d) <divx> … </divx>
127. Which tag is used to define list items?
a) <ol>…</ol>
b) <ul>… </ul>
c) <list>… </list>
d) <li>… </li>
128. Which tag is used to define description lists ?
a) <dl>… </dl>
b) <dd>… </dd>
c) <dlist>… </dlist>
d) <check> … </check>
129. Which tag is used to define ordered listing ?
a) <ol>…</ol>
b) <list>… </list>
c) <ul>… </ul>
d) <li>… </li>
130. Which tag is used to define unordered listing ?
a) <ol>… </ol>
b) <ul>… </ul>
c) <list>… </list>
d) <li>… </li>
131. Which attribute is often used to indicate class name in a style sheet ?
a) style
b) css
c) src
d) class
132. Which tag is used to display a radio button ?
a) <input type=”text”>
b) <input type=”radio”>
c) <input type=”textbox”>
d) <input type=”checkbox”>
133. The tag for the table data is ?
a) <TR>
b) <TD>
c) <TH>
d) None of the above
134. The tag for the table rows is ?
a) <TR>
b) <TD>
c) <TH>
d) None of the above
135. To create a list using lowercase letters, use ?
a) <ol “a”>
b) <ol=”a”>
c) <ol type=”a”>
d) <ol letter=”a”>
136. Which tag is used to display a single-line text input field ?
a) <input type=”textbox”>
b) <input type=”checkbox”>
c) <input type=”submit”>
d) <input type=”text”>
137. Defining clickable sub-areas on an image is called ?
a) image linking
b) image mapping
c) multiple mapping
d) none of the above
138. Which tag is used to display a clickable button ?
a) <input type=”text”>
b) <input type=”submit”>
c) <input type=”checkbox”>
d) <input type=”button”>
139. Which input type defines a reset button that will reset all form values to their default values ?
a) clear
b) reset
c) refresh
d) clear : both
140. Which HTML statement is correct to display (x%:y 2) ?
a) <p>Hello<sub>World</sub></p>
b) <p>Hello<sup>World</sup></p>
c) <p>Hello<top>World</top></p>
d) <p>Hello<above>World</above></p>