Test your knowledge now with our Online Quizzes, Q&A and MCQs! HTML Quick Study Episode- 10. Take part in an interactive quiz experience with our online quizzes, Q&A and MCQs. Try it out now Online Quiz, Q&A & MCQ.
2. What is Default extension for a HTML document?
a. .htm
b. .html
c. both a & b
d. none of them
View Answer
c. both a & b
7. SGML stands for .
a. Standard Grand Markup Language
b. Synchronized Generalized Markup Language
c. Standard Generalized Markup Language
d. Simple Generalized Markup Language
View Answer
c. Standard Generalized Markup Language
8. DTD stands in markup language for_______.
a. Document Type Definition
b. Data Type Definition
c. Digital Type Definition
d. Design Type Definition
View Answer
a. Document Type Definition
9. DDL stands for ______
a. Data Description Library
b. Data Description Language
c. Data Description Liberty
d. Data Description License
View Answer
a. Data Description Library
10. Most of the HTML tags have a corresponding closing tag, which begins with _____symbol.
a. <! – –
b. < /
c. < :
d. <
View Answer
b. < /
11. If a HTML tag does not have explicit closing tag, the tag may be closed with _____symbol instead of a simple >symbol.
a. >
b. : >
c. />
d. @ >
View Answer
c. />
12. The title to be displayed at the top of the browser window or browser tab is enclosed in_____ .
a. < HTML > ::: < =HTML >
b. < HEAD > ::: < =HEAD >
c. < TITLE > ::: < /TITLE >
d. < BODY > ::: < =BODY >
View Answer
c. < TITLE > ::: < /T ITLE >
13. Paragraph is contained inside _______HTML tags.
a. < p > ::: < /p >
b. < center > ::: < =center >or < div align =\center" > ::: < =div >
c. < div align = \left" > ::: < =div >
d. < div align = \right" > ::: < =div >
View Answer
a. < p > ::: < /p >
14. Elements to be centre aligned in browser display are enclosed inside _______HTML tags.
a. < p > ::: < =p >
b. <center> ::: < =center >or < div align = “center" > ::: < /div >
c. < div align = \left" > ::: < =div >
d. < div align = \right" > ::: < =div >
View Answer
b. <center> ::: < =center >or < div align = “center" > ::: < /div >
15. Elements to be left aligned in browser display are enclosed inside ______HTML tags.
a. < div align = \justified" > ::: < =div >
b. < center > ::: < =center >or < div align =\center" > ::: < =div >
c. < div align = \left" > ::: < =div >
d. < div align = \right" > ::: < =div >
View Answer
c. < div align = \left" > ::: < =div >
16. Elements to be right aligned in browserdisplay are enclosed inside_____ HTML tags.
a. < div align = \justified" > ::: < =div >
b. < center > ::: < =center >or < div align =\center" > ::: < =div >
c. < div align = \left" > ::: < =div >
d. < div align = \right" > ::: < =div >
View Answer
d. < div align = \right" > ::: < =div >
17. Elements to be justified (aligned usewith left and right edges) in browser display are enclosed inside_____ tags inHTML.
a. < div align = \justified" > ::: < =div >
b. < center > ::: < =center >or < div align =\center" > ::: < =div >
c. < div align = \left" > ::: < =div >
d. < div align = \right" > ::: < =div >
View Answer
a. < div align = \justified" > ::: < =div >
18. _______ HTML tag displays animage in HTML page.
a. <img src= “file name.jpg" >
b. <table border= 1 > ::: < =table >
c. <table border= 1 > ::: < =table >
d. <ahref= \target:htm" > ::: < =a >
View Answer
a. <img src= “file name.jpg" >
19. ______HTML tag displays a table without border.
a. <imgsrc= \file:jpg" >
b. <table border= 1 > ::: < =table >
c. <table border= 0 > ::: < /table >
d. <ahref= \target:htm" > ::: < =a >
View Answer
c. <tableborder= 0 > ::: < /table >
20. ______HTML tag creates aclickable hyper link for navigation inside the same page or between differentpages.
a. <imgsrc= \file:jpg" >
b. <table border= 1 > ::: < =table >
c. <table border= 0 > ::: < =table >
d. <ahref= “target.htm" > ::: < /a >
View Answer
d. <ahref= “target.htm" > ::: < /a >
21. _______HTML tag displays a table with border thickness of 1 pixel.
a. <img src= \file:jpg" >
b. <table border= 1 > ::: < =table >
c. <table border= 0 > ::: < =table >
d. <ahref= “target.htm" > ::: < /a >
View Answer
b. <table border= 1 > ::: < =table >
22. _____HTML tag can control fontface, size and colour.
a. < font face = “Arial" size = “1" color = “red" > ::: < /font >
b. < H1 > ::: < =H1 >
c. < H2 > ::: < =H2 >
d. < H3 > ::: < =H3 >
View Answer
a. < font face = “Arial" size = “1" color = “red" > ::: < /font >
23. _______HTML tag displays headingsof the largest size.
a. < font face = “Arial" size = “1" color = “red" > ::: < /font >
b. < H1 > ::: < =H1 >
c. < H2 > ::: < =H2 >
d. < H3 > ::: < =H3 >
View Answer
b. < H1 > ::: < =H1 >
24. _____HTML tag displays headingsof the second largest size.
a. < H4 > ::: < =H4 >
b. < H1 > ::: < =H1 >
c. < H2 > ::: < /H2 >
d. < H3 > ::: < =H3 >
View Answer
c. < H2 > ::: < /H2 >
25. ______HTML tag displays headingsof the third largest size.
a. < H4 > ::: < =H4 >
b. < H1 > ::: < =H1 >
c. < H2 > ::: < =H2 >
d. < H3 > ::: < /H3 >
View Answer
d. < H3 > ::: < /H3 >
26. ______HTML tag displays headingsof the smallest size.
a. < H6> ::: < /H6>
b. < H1 > ::: < =H1 >
c. < H2 > ::: < =H2 >
d. < H3 > ::: < =H3 >
View Answer
a. < H6> ::: < /H6>
27. In HTML, text size ______ represents the normal size of text.
a. -4
b. 0
c. +4
d. +8
View Answer
b. 0
28. In HTML5, font tag has been_______
a. appreciated
b. reinstated
c. deprecated
d. beautified
View Answer
c. deprecated
29. Colour can be specified using colour name (like red, gray, blue, cyan, magenta, etc.) or numeric value in _______ colour order.
a. Red-Green-Blue
b. Blue-Green-Red
c. Green-Red-Blue
d. Blue-Green-Blue
View Answer
a. Red-Green-Blue
30. Colour code of #FF0000 stands for ______ colour.
a. blue
b. green
c. red
d. black
View Answer
c. red
31. Colour code of #00FF00 stands for _______ colour.
a. blue
b. green
c. red
d. black
View Answer
b. green
32. Colour code of #0000FF stands for______ colour.
a. blue
b. green
c. red
d. black
View Answer
a. blue
33. Colour code of #000000 stands for _______ colour.
a. blue
b. green
c. red
d. black
View Answer
d. black
34. Colour code of #FFFFFF stands for _______colour.
a. white
b. green
c. red
d. black
View Answer
a. white
35. In HTML, the two digit color code value ranges from 00 to_____ in hexadecimal.
a. AA
b. 11
c. FF
d. CC
View Answer
c. FF
36. ______tag is used to display different HTML pages in a single window (not recommended for mobile viewing).
a. font
b. frameset
c. table
d. img
View Answer
b. frameset
37. Width of elements like image, table, etc. can be controlled using ______attribute.
a. width
b. height
c. length
d. breadth
View Answer
a. width
38. Height of elements like image, table, etc. can be controlled using ______attribute.
a. width
b. height
c. length
d. breadth
View Answer
b. height
39. Width and height value can be specified in _______or in pixels.
a. metre
b. kilometer
c. percentage
d. inches
View Answer
c. percentage
40. HTML is what type of language
a. Scripting language
b. Markup language
c. Programming language
d. Network protocol
View Answer
b. Markup language
41. ______HTML tag creates a break.
a. <center> ::: < =center >
b. <table> ::: < =table >
c. <img width = \80%" src= \globe:jpg" >
d. <br>
View Answer
d. <br>
42. ______HTML tag displays an image named globle.jpg at 80% of the total width available in the browser.
a. <center> ::: < =center >
b. <table> ::: < =table >
c. <img width = “80%" src= “globe.jpg" >
d. <br= >
View Answer
c. <img width = “80%" src= “globe.jpg" >
43. Scrolling text may be created using______ tag in HTML.
a. <marquee> ::: < /marquee >
b. < span > ::: < =span >
c. < p > ::: < =p >
d. < font > ::: < =font >
View Answer
a. <marquee> ::: < /marquee >
44. Text scrolling to left may be created using ______ tag in HTML.
a. < marquee direction = “left" > ::: </marquee >
b. < marquee direction = \right" > ::: <=marquee >
c. < marquee direction = \up" > ::: <=marquee >
d. < marquee direction = \down" > ::: <=marquee >
View Answer
a. < marquee direction = “left" > ::: </marquee >
45. Text scrolling to right may be created using_______ tag in HTML.
a. < marquee direction = \left" > ::: <=marquee >
b. < marquee direction = “right" > ::: </marquee >
c. < marquee direction = \up" > ::: <=marquee >
d. < marquee direction = “down" > ::: </marquee >
View Answer
b. < marquee direction = “right" > ::: </marquee >
46. Text scrolling upwards may be created using______ tag in HTML.
a. < marquee direction = \left" > ::: <=marquee >
b. < marquee direction = \right" > ::: <=marquee >
c. < marquee direction = “up" > ::: </marquee >
d. < marquee direction = \down" > ::: <=marquee >
View Answer
c. < marquee direction = “up" > ::: </marquee >
47. Text scrolling downwards may be created using _____tag in HTML.
a. < marquee direction = \left" > ::: <=marquee >
b. < marquee direction = \right" > ::: <=marquee >
c. < marquee direction = \up" > ::: <=marquee >
d. < marquee direction = “down" > ::: </marquee >
View Answer
d. < marquee direction = “down" > ::: </marquee >
48. ______tag in HTML creates a clickable hyperlink.
a. < p > ::: < =p >
b. <img src= \globe:png" >
c. < table border = 1 > ::: < =table >
d. < a href= “page.html" > ::: < /a >
View Answer
d. < a href= “page.html" > ::: < /a >
49. _______HTML tag displays a table without border.
a. <tr> ::: < =tr>
b. <th> ::: < =th>
c. < table border = 1 > ::: < =table >
d. < table border = 0 > ::: < /table >
View Answer
d. < table border = 0 > ::: < /table >
50. _______HTML tag displays a table with border thickness of 1 pixel.
a. <tr> ::: < =tr>
b. <th> ::: < =th>
c. < table border = 1 > ::: < /table >
d. < table border = 0 > ::: < =table >
View Answer
c. < table border = 1 > ::: < /table >
51. ______HTML tag is used to mark header column for a table.
a. <tr> ::: < =tr>
b. <th> ::: < /th>
c. < table border = 1 > ::: < =table >
d. < table border = 0 > ::: < =table >
View Answer
b. <th> ::: < /th>
52. ______ HTML tag is used to mark a row for a table.
a. <tr> ::: < /tr>
b. <th> ::: < =th>
c. < table border = 1 > ::: < =table >
d. < table border = 0 > ::: < =table >
View Answer
a. <tr> ::: < /tr>
53. ______HTML tag is used to mark a column inside a row.
a. <td> ::: < /td >
b. <th> ::: < =th>
c. < table border = 1 > ::: < =table >
d. < table border = 0 > ::: < =table >
View Answer
a. <td> ::: < /td >
54. Among the following options, ______ HTML tag merges 3 columns to create a large column.
a. <tr> ::: < =tr>
b. <td> ::: < =td >
c. < td colspan= 3 > ::: < /td >
d. < td rowspan= 4 > ::: < =td >
View Answer
c. < td colspan= 3 > ::: < /td >
55. Among the following options, ______HTML tag merges 4 rows to create a large row.
a. <tr> ::: < =tr>
b. <td> ::: < =td >
c. < td colspan= 3 > ::: < =td >
d. < td rowspan= 4 > ::: < /td >
View Answer
d. < td rowspan= 4 > ::: < /td >
56. ______ creates an ordered list.
a. <ul> ::: < =ul>
b. <ol> ::: < /ol>
c. <li> ::: < =li >
d. none of them
View Answer
b. <ol> ::: < /ol>
57. ______ creates an unordered list.
a. <ul> ::: < /ul>
b. <ol> ::: < =ol>
c. <li> ::: < =li >
d. none of them
View Answer
a. <ul> ::: < /ul>
58. ________ declares a list item which may be part of ordered list or unordered list.
a. <ul> ::: < =ul>
b. <ol> ::: < =ol>
c. < li > ::: < /li >
d. none of them
View Answer
c. < li > ::: < /li >
59. HTML form controls commonly use_____ tag for taking form input.
a. <input>
b. < table > ::: < =table >
c. <img>
d. < form > ::: < =form >
View Answer
a. <input>
60. HTML form is contained inside_____ tag.
a. <input>
b. < form > ::: < /form >
c. <img>
d. < form > ::: < =form >
View Answer
b. < form > ::: < /form >
61. Input tag in HTML supports ______attribute.
a. type
b. value
c. name/ID
d. all of them
View Answer
d. all of them
62. To display a button in HTML form, _____attribute is used in the input tag.
a. button
b. checkbox
c. color
d. date
View Answer
a. button
63. To display a checkbox in HTML form, _______attribute is used in the input tag.
a. button
b. checkbox
c. color
d. date
View Answer
b. checkbox
64. To display a colour selection input in HTML form, ______attribute is usedin the input tag.
a. button
b. checkbox
c. color
d. date
View Answer
c. color
65. To display a date input in HTML form, ______attribute is used in the input tag.
a. button
b. checkbox
c. color
d. date
View Answer
d. date
66. To display a date and time input in HTML form, ______attribute is usedin the input tag.
a. button
b. checkbox
c. color
d. datetime
View Answer
d. datetime
67. To display a field for email input in HTML form, ______attribute is usedin the input tag.
a. email
b. file
c. hidden
d. image
View Answer
a. email
68. To display a file input dialog in HTML form, ______attribute is used in the input tag.
a. email
b. file
c. hidden
d. image
View Answer
b. file
69. To create a hidden field in HTML form, ______attribute is used in the input tag.
a. email
b. file
c. hidden
d. image
View Answer
c. hidden
70. To create an image selection tool in HTML form, _____attribute is usedin the input tag.
a. email
b. file
c. hidden
d. image
View Answer
d. image
71. To create month selection field in HTML form, ______attribute is used in the input tag.
a. month
b. number
c. password
d. radio
View Answer
a. month
72. To create number input field in HTML form, _____ attribute is used in the input tag.
a. month
b. number
c. password
d. radio
View Answer
b. number
73. To create password input field in HTML form, ____attribute is used in the input tag.
a. month
b. number
c. password
d. radio
View Answer
c. password
74. To create radio button input field in HTML form, _____attribute is usedin the input tag.
a. month
b. number
c. password
d. radio
View Answer
d. radio
75. To create an input field to display numbers with specific start, end and step values in HTML form,______ attribute is used in the input tag.
a. range
b. reset
c. search
d. tel
View Answer
a. range
76. To create an input field to reset all input elements of a form in HTML form, _____ attribute is used in the input tag.
a. range
b. reset
c. search
d. tel
View Answer
b. reset
77. To create search field (behviour depends upon server implementation) in HTML form, ______attribute is used in the input tag.
a. range
b. reset
c. search
d. tel
View Answer
c. search
78. To create field for telephone number input in HTML form, _____ attribute is used in the input tag.
a. range
b. reset
c. search
d. tel
View Answer
d. tel
79. To create a field for submitting the contents of HTML form to the server, ______ attribute is used in the input tag.
a. submit
b. text
c. time
d. url
View Answer
a. submit
80. To create a text input field in HTML, _____ attribute is used in the input tag.
a. submit
b. text
c. time
d. url
View Answer
b. text
81. To create a time input in HTML, _____attribute is used in the input tag.
a. submit
b. text
c. time
d. url
View Answer
c. time
82. To create a field for taking a web address in HTML, _____ attribute is used in the input tag.
a. submit
b. text
c. time
d. url
View Answer
d. url
83. What is the first tag in html document?
a. <html>
b. <head>
c. <title>
d. </html>
View Answer
a. <html>
84. Which html tag inserts a line horizontally in a page?
a. <lr>
b. <l>
c. <hr>
d. <line>
View Answer
c. <hr>
85. What are the two main parts, available in html document?
a. Title and Body
b. Head and title
c. Head and Body
d. Head and document
View Answer
c. Head and Body
88. Which attribute is used with <td> tag to merge two cells horizontally?
a. Colspan = 2
b. Rowspan = 2
c. Mergerows
d. mergecols
View Answer
a. Colspan = 2
89. Which tag creates a checkbox for a form in html?
a. <check box>
b. <input check box>
c. <input = check box>
d. <input type = “check box”>
View Answer
d. <input type = “check box”>
90. Which html tag is used to add a row in a table?
a. <tr> and </tr>
b. <cr> and </cr>
c. <th> and </th>
d. <td> and </td>
View Answer
a. <tr> and </tr>
91. Which html tag is used to divide a row into data cells?
a. <tr> and </tr>
b. <cr> and </cr>
c. <th> and </th>
d. <td> and </td>
View Answer
d. <td> and </td>
92. Which is the correct syntax for adding alternate text for image, if the image cannot be displayed?
a. <img src = “boat.gif” alt = “big boat”>
b. <img src = “boat.gif” alt text = “big boat”/>
c. <img src = “boat.gif” alternate = “big boat”/>
d. <img src = “boat.gif” alternate text = “big boat”/>
View Answer
a. <img src = “boat.gif” alt = “big boat”>
93. Which is the correct H1 tag for right alignment?
a. <h1 align = “right”>…..</h1>
b. <h1 tag align = “right”>…..</h1>
c. <h1 align = “r”>…..</h1>
d. <h1 alignment = “right”>…..</h1>
View Answer
a. <h1 align = “right”>…..</h1>
94. What is the correct syntax for making a hyperlink?
a. <http: // “https://www.prepazu.com”</a>
b. <url = “https: // www.prepazu.com”>Link
c. <a href = “https:// www.prepazu.com”>Link</a>
d. <a ref = “https:// www.prepazu.com”>Link</a>
View Answer
c. <a href = “https:// www.prepazu.com”>Link</a>
95. Which is the correct tag for adding iframe in html?
a. <iframe https://www.prepazu.com></iframe>
b. <iframe =”https:// www.prepazu.com”></iframe>
c. <iframe src = “https://www.prepazu.com”></iframe>
d. <iframe href = “https:// www.prepazu.com”></iframe>
View Answer
c. <iframe src = “https://www.prepazu.com”></iframe>
96. what is the correct html tag for adding a background color?
a. <body color = “Yellow”>
b. <body bgcolor = “Yellow”>
c. <body background = “Yellow”>
d. <body bg = “Yellow”>
View Answer
b. <body bgcolor = “Yellow”>
97. How do you add a link which will allow the visitor to send an email from the page?
a. <a href = “mailto :youradderss”>
b. <a href = “sendmailtoyour address”>
c. <a=”mailto”>
d. <href = “mailto”>
View Answer
a. <a href = “mailto :youradderss”>
98. What will happen, If the background image is smaller than the screen, what will happen?
a. It will be stretched
b. It will leave a blank space at the bottom of the page
c. It will leave a blank space at the top of the page
d. It will be repeated
View Answer
d. It will be repeated
99. which is the correct html tag for making a text input field?
a. <text type = “Text”>
b. <input type = “text”>
c. <input type = “textfield”>
d. <input type = “textbox”>
View Answer
b. <input type = “text”>
100. Which is the correct html tag for creating password field?
a. <text type = “password”>
b. <input type = “pwd”>
c. <input type = “password”>
d. <input type = “passcode”>
View Answer
c. <input type = “password”>