HTML MCQ Questions And Answers

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

Show Answer
a) Hyper Text Markup Language

 

2. Who is the developer of HTML ?

a) Robert Cailliau
b) Tim Thompson
¢) Charles Darwin
d) Tim Berners-Lee

Show Answer
d) Tim Berners-Lee

 

3. HTML was first proposed in the year ?

a) 1985
b) 1990
c) 1995
d) 2000

Show Answer
b) 1990

 

4. HTML program is saved by using the ________ extension.

a) .ht
b) .hml
c) .html
d) None of the above

Show Answer
c) .html

 

5. What type of language is HTML ?

a) Scripting Language
b) Markup Language
¢) Network Protocol
d) Programming Language

Show Answer
b) Markup Language

 

6. To create HTML page, you need ?

a) Web browser
b) Text editor
c) Both a & b
d) None of these

Show Answer
c) Both a & b

 

7. HTML uses_________ ?

a) Predefined tags
b) User-defined tags
c) Fixed tags defined by the language
d) Tags for links only

Show Answer
c) Fixed tags defined by the language

 

8. Choose the correct HTML tag to make the text bold –

a) <bd>
b) <a>
c) <bl>
d) <b>

Show Answer
d) <b>

 

9. Choose the correct HTML tag to make the text italic ?

a) <i>
b) <italic>
c) <it>
d) <il>

Show Answer
a) <i>

 

10. Which tag is used to define a line break ?

a) <Ir>
b) <\n>
c) <br>
d) <br>…</br>

Show Answer
c) <br>

 

11. What does the <br> tag add to your webpage?

a) Paragraph break
b) Long break ’
c) Line break
d) None of these

Show Answer
c) Line break

 

12. Which of the following is a paragraph tag in HTML ?

a) <p>
b) <b>
c) <pre>
d) None of the above

Show Answer
a) <p>

 

13. HTML is a subset of ________

a) SGMD
b) SGMH
c) SGML
d) None

Show Answer
c) SGML

 

14. All HTML tags are enclosed in what?

a) #and #
b) ?and!
¢) {and}
d) <and>

Show Answer
d) <and>

 

15. The BODY tag is usually used after ?

a) HTML tag
b) HEAD tag
c) TITLE tag
d) EM tag

Show Answer
b) HEAD tag

 

16. The first tag inside <TABLE> tag is ?

a) <TD>
b) <HEAD>
c) <CAPTION>
d) <TH>

Show Answer
c) <CAPTION>

 

17. Which of the following tag is used to insert a line-break in HTML?

a) <a>
b) <b>
c) <br>
d) <pre>

Show Answer
c) <br>

 

18. Which character is used to represent the closing of a tag in HTML ?

a) \
b) |
c) /
d) .

Show Answer
c) /

 

19. Which tag tells the browser where the page starts and stops. ?

a) <html>
b) <body>
c) <head>
d) <title>

Show Answer
a) <html>

 

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

Show Answer
c) container tag

 

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

Show Answer
b) White, black and gray

 

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

Show Answer
c) BASE

 

23. Full form of URL is ?

a) Uniform read locator
b) Uniform research locator
c) Uniform resource locator
d) United research locator

Show Answer
c) Uniform resource 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

Show Answer
c) Any text editor

 

25. Which of the following is the container for <tr>, <th>, and <td> ?

a) <data>
b) <table>
c) <group>
d) none of these

Show Answer
b) <table>

 

26. Which of the following HTML attribute is used to define inline styles ?

a) class
b) style
c) type
d) None of the above

Show Answer
b) style

 

27. What tag would you add to specify a font for your whole page?

a) <defaultfont>
b) <targetfont>
c) <basefont>
d) <font>

Show Answer
a) <defaultfont>

 

28. Which HTML tag produces the biggest heading?

a) <h1>
b) <h2>
c) <h4>
d) <h6>

Show Answer
a) <h1>

 

29. The <BASE> tag is designed to appear only between ? 

a) <BODY>
b) <HEAD>
c) <TITLE>
d) <PRE>

Show Answer
b) <HEAD>

 

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

Show Answer
b) After the table is loaded

 

31. The default value of the BORDER attribute is ?

a) 1 pixel
b) 2 pixel
c) 3 pixel
d) None of the above

Show Answer
a) 1 pixel

 

32. All normal webpages consists of ________

a) Body and frameset
b) Top and bottom
c) Head and body
d) None of these

Show Answer
c) Head and body

 

33. To created a bulleted list, use ?

a) <ol>
b) <ul>
c) <il>
d) None

Show Answer
b) <ul>

 

34. What kind of list will <ol> tags create?

a) Numbered list
b) Unordered list
c) Bulleted list
d) None of the above

Show Answer
a) Numbered list

 

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

Show Answer
c) Increase the distance between cell and content

 

36. HTML tags are recognized by _________

a) <==>
b) <>
c) <!
d) None of the above

Show Answer
b) <>

 

37. Which tag adds a paragraph break after text ?

a) <HR>
b) <BR>
c) <P>
d) <PARAGRAPH>

Show Answer
c) <P>

 

38. The tag for title text for rows and columns is ?

a) <TH>
b) <TD>
c) <TR>
d) None of these

Show Answer
a) <TH>

 

39. How many characters can be written with 1 kilobyte ?

a) 1020
b) 1024
c) 1048
d) None of the above

Show Answer
b) 1024

 

40. The symbol used at the beginning of the HREF text is_________

a) #
b) &
0 @
d) $

Show Answer
a) #

 

41. How can you make a list that list the items with numbers ?

a) <ul>
b) <list>
c) <ol>
d) None of the above

Show Answer
c) <ol>

 

42. Which tag can set the background color for your page ?

a) <font>
b) <body>
c) <head>
d) <title>

Show Answer
b) <body>

 

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

Show Answer
a) <tr>and </tr>

 

44. Gif and jpg are the two main types of ?

a) Images
b) Animated effects
c) Videos
d) None of these

Show Answer
a) Images

 

45. Which of the following is underline tag?

a) <PRE>
b) <UL>
c) <U>
d) <HR>

Show Answer
c) <U>

 

46. Which of the following HTML tag is a special formatting tag ?

a) <p>
b) <b>
c) <pre>
d) None of the above

Show Answer
c) <pre>

 

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

Show Answer
c) 6 headers in most HTML page

 

48. <P> is called ?

a) Head tag
b) Container tag
c) Paragraph tag
d) None of the above

Show Answer
c) Paragraph tag

 

49. The <HR> tag is used for ?

a) horizontal ruler
b) vertical ruler
c) new line text
d) new paragraph

Show Answer
a) horizontal ruler

 

50. Which HTML tag is used to define smaller text ?

a) <span>
b) <normal>
c) <smaller>
d) <small>

Show Answer
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

Show Answer
c) They can be repeated

 

52. Which HTML tag is used to define marked or highlighted text ?

a) <m>
b) <mark>
c) <highlight>
d) <highlighted>

Show Answer
b) <mark>

 

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

Show Answer
a) save it with ASCII text file

 

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

Show Answer
c) American Standard Code for Information Interchange

 

55. The most basic element of any HTML page is _______

a) Text
b) BCD text
c) ASCII text
d) None of the above

Show Answer
c) ASCII text

 

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

Show Answer
a) <marquee>

 

57. Which HTML tag is used to define strike a line through deleted text ?.

a) <del>
b) <delete>
c) <deleted>
d) <through>

Show Answer
a) <del>

 

58. What will be added using <td> and </td> tag ?

a) Cell
b) Rows
c) Columns
d) Steps

Show Answer
c) Columns

 

59. Which HTML tag is used to define subscript text?

a) <s>
b) <sub>
c) <subscript>
d) <subscripted>

Show Answer
b) <sub>

 

60. Which HTML tag is used to define superscript text?

a) <sup>
b) <superscript >
c) <superscripted>
d) <s>

Show Answer
a) <sup>

 

61. Which HTML tag is used to display the power in expression ?

a) <sup>
b) <sub>
c) <p>
d) None of the above

Show Answer
a) <sup>

 

62. Which HTML tag is used to define a short quotation ?

a) <quotation>
b) <quote>
c) <qut>
d) <q>

Show Answer
d) <q>

 

63. Which tag is used to insert images in your web page ?

a) img
b) scr
c) im
d) none of these

Show Answer
a) img

 

64. Which HTML tag is used to define acronym or abbreviation ?

a) <acr>
b) <acronym>
c) <abbreviation>
d) <abbr>

Show Answer
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>

Show Answer
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

Show Answer
b) <Table>

 

67. Which format usually works best for photos?

a) HTML
b) JPG
c) GIF
d) All of these

Show Answer
b) JPG

 

68. Which tag is used to add columns to the table ?

a) <td>
b) <tr>
c) <th>
d) <colspan>

Show Answer
a) <td>

 

69. Which tag tells where the link starts ?

a) <body>
b) <a>
c) <i>
d) None of the above

Show Answer
b) <a>

 

70. Which tag defines the HTML document’s body?

a) <bdy>
b) <body>
c) <HTML>
d) <HTMLbody>

Show Answer
b) <body>

 

71. The MIME text file is saved with ?

a) CSS extension
b) HMT extension
c) HTML extension
d) None of the above

Show Answer
c) HTML extension

 

72. MIME stands for ?

a) Multipurpose Internet Mail Extra
b) Multipurpose Internet Mail Extensions
c) Multipurpose Internet Mail End
d) None of these

Show Answer
b) Multipurpose Internet Mail Extensions

 

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

Show Answer
c) Height and width

 

74. What does vlink mean ?

a) active link
b) visible link
c) visited link
d) None of the above

Show Answer
c) visited link

 

75. All HTML documents will be basically ?

a) Graphs
b) Text
c) Pictures
d) None of these

Show Answer
b) Text

 

76. Which tag contains meta information about the HTML page ?

a) <html>
b) <title>
c) <head>
d) <body>

Show Answer
c) <head>

 

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

Show Answer
b) A link

 

78. Tag that allows you to nest other HTML tags within a description ?

a) <CAPTION>
b) <TD>
c) <TR>
d) None of the above

Show Answer
a) <CAPTION>

 

79. HTML tags are surrounded by what type of brackets ?

a) Curly
b) Round
c) Squart
d) Angle

Show Answer
d) Angle

 

80. HTML web pages can be read and rendered by?

a) Web Browser
b) Interpreter
c) Compiler
d) Server

Show Answer
a) Web Browser

 

81. Which of the following is not a browser ?

a) Microsoft Bing
b) Netscape Navigator
c) Mozilla Firefox
d) Opera

Show Answer
a) Microsoft Bing 

 

82. HTML tags with no content are called ?

a) Special tags
b) Advanced tags
c) Empty tags
d) Other tags

Show Answer
c) Empty tags

 

83. To separate single list, use

a) <ul>and </ul>
b) <ol> and </ol>
c) <li> and </li>
d) All of these

Show Answer
c) <li> and </li>

 

84. HTML headings are defined with the tags

a) <head1> to <head6>
b) <h1> to <h3>
c) <h1> to <h6>
d) <pl>to <p6>

Show Answer
c) <h1> to <h6>

 

85. HTML is simple than ?

a) SGML
b) CTML
c) STML
d) None of the above

Show Answer
a) SGML 

 

86. Text within <strong> tag is displayed as ?

a) bold
b) italic
c) underline
d) list

Show Answer
a) bold

 

87. Where do you put the <title> tag in HTML ?

a) Base
b) Body
c) Head
d) None of the above

Show Answer
c) Head

 

88. <input> is _________

a) a format tag
b) an empty tag
c) All of the above
d) None of the above

Show Answer
b) an empty tag

 

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

Show Answer
c) html, head, title, body

 

90. Can we hide content using the comment ?

a) Yes
b) No

Show Answer
a) Yes

 

91. Can we hide inline content using the comment ?

a) Yes
b) No

Show Answer
a) Yes

 

92. Is HTML a case sensitive ?

a) Yes
b) No

Show Answer
b) No

 

93. Which attribute is used to name an element uniquely ?

a) id
b) dot
c) Class
d) All of the above

Show Answer
a) id

 

94. Which of the following is the root tag of an HTML document ?

a) <title>
b) <body>
c) <head>
d) <html>

Show Answer
d) <html>

 

95. Which HTML tag is used to define emphasized text ?

a) <italic>
b) <em>
c) <it>
d) <i>

Show Answer
b) <em>

 

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>

Show Answer
a) <head>

 

97. Which tag is used to create an HTML form for user input ? )

a) <form>
b) <input>
c) <form_put>
d) <form _get>

Show Answer
a) <form>

 

98. <! is a ________

a) Comment tag
b) Underlined tag
¢) Underlined with italic tag
d) None of the above

Show Answer
a) Comment tag

 

99. Can we use class name with multiple HTML elements ?

a) Yes
b) No

Show Answer
a) Yes

 

100. Can we use id attribute with multiple HTML elements ?

a) Yes
b) No

Show Answer
b) No

 

101. What should be the first tag in any HTML document ?

a) <head>
b) <html>
c) <title>
d) <document>

Show Answer
a) <head>

 

102. Apart from <b> tag, which tag makes text bold?

a) <fat>
b) <black>
c) <strong>
d) <emp>

Show Answer
c) <strong>

 

103. Which HTML tag is used to define bold text without any additional importance ?

a) <strong>
b) <bolder>
c) <bolt>
d) <b>

Show Answer
d) <b>

 

104. Which HTML tag is used to define text with strong importance ?

a) <strong>
b) <bold>
c) <b>
d) <bolder>

Show Answer
a) <strong>

 

105. The tag used to create hypertext and hypermedia links is ? 

a) <HR>
b) <BR>
c) <PRE>
d) <A>

Show Answer
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

Show Answer
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

Show Answer
a) What You See Is What You Get

 

108. HTML tags are all ?

a) in lower case
b) in upper case
c) case sensitive
d) not case sensitive

Show Answer
d) not case sensitive

 

109. Which tag is used to display picture in HTML page ?

a) picture
b) image
c) img
d) src

Show Answer
c) img

 

110. Fundamental HTML Block is known as ?

a) HTML Attribute
b) HTML Element
¢) HTML Body
d) HTML Tag

Show Answer
d) HTML Tag

 

111. Which HTML tag is used to define a hyperlink ?

a) <a>
b) <h>
c) <hyperlink>
d) Both A and B

Show Answer
a) <a>

 

112. Which tag is used to override the current text direction ?

a) <bdi>
b) <bdo>
c) <bdr>
d) None of the above

Show Answer
b) <bdo>

 

113. Which tag is used to display a horizonal rule (horizonal line) ?

a) <br>
b) <hr>
c) <hr>..</hr>
d) <line>

Show Answer
b) <hr>

 

114. Nested HTML elements are allowed in HTML ?

a) Yes
b) No

Show Answer
a) Yes

 

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>

Show Answer
c) <address>

 

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>

Show Answer
a) <p>H<sub>2</sub>0</p>

 

117. ________ attribute specifies where to open the linked document ?

a) target
b) href
c) link
d) src

Show Answer
a) target

 

118. Which tag is used to embed an image in an HTML document ?

a) <pic>
b) <img>
c) <picture>
d) <image>

Show Answer
b) <img>

 

119. Which attribute specifies the path to the image?

a) href
b) link
c) src
d) All of the above

Show Answer
c) src

 

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

Show Answer
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

Show Answer
c) alternate

 

122. Which HTML tag is used to define a table?

a) <table>
b) <tables>
c) <th>
d) <tr>

Show Answer
a) <table>

 

123. Each table cell is defined by a tag

a) <th>… </th>
b) <cell>… </cell>
c) <tr>..</tr>
d) <td>… </td>

Show Answer
d) <td>… </td>

 

124. Each table header is defined by a tag

a) <cell> … </cell>
b) <td>… </td>
c) <tr>. </tr>
d) <th>…</th>

Show Answer
d) <th>…</th>

 

125. Each table row is defined by a tag

a) <cell> … </cell>
b) <tr>… </tr>
c) <td>… </td>
d) <th>…</th>

Show Answer
b) <tr>… </tr>

 

126. Which tag is a block-level element ?

a) <block> … </block>
b) <b>… </b>
c) <div>… </div>
d) <divx> … </divx>

Show Answer
c) <div>… </div>

 

127. Which tag is used to define list items?

a) <ol>…</ol>
b) <ul>… </ul>
c) <list>… </list>
d) <li>… </li>

Show Answer
d) <li>… </li>

 

128. Which tag is used to define description lists ?

a) <dl>… </dl>
b) <dd>… </dd>
c) <dlist>… </dlist>
d) <check> … </check>

Show Answer
a) <dl>… </dl>

 

129. Which tag is used to define ordered listing ?

a) <ol>…</ol>
b) <list>… </list>
c) <ul>… </ul>
d) <li>… </li>

Show Answer
a) <ol>…</ol>

 

130. Which tag is used to define unordered listing ?

a) <ol>… </ol>
b) <ul>… </ul>
c) <list>… </list>
d) <li>… </li>

Show Answer
b) <ul>… </ul>

 

131. Which attribute is often used to indicate class name in a style sheet ?

a) style
b) css
c) src
d) class

Show Answer
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”>

Show Answer
b) <input type=”radio”>

 

133. The tag for the table data is ?

a) <TR>
b) <TD>
c) <TH>
d) None of the above

Show Answer
b) <TD>

 

134. The tag for the table rows is ?

a) <TR>
b) <TD>
c) <TH>
d) None of the above

Show Answer
a) <TR>

 

135. To create a list using lowercase letters, use ?

a) <ol “a”>
b) <ol=”a”>
c) <ol type=”a”>
d) <ol letter=”a”>

Show Answer
c) <ol type=”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”>

Show Answer
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

Show Answer
b) image mapping

 

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”>

Show Answer
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

Show Answer
b) reset

 

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>

Show Answer
b) <p>Hello<sup>World</sup></p>

Leave a Comment