Home Videos Exercises MCQ Q&A Quiz E-Store Services Blog Sign in Appointment Payment

HTML MCQ

Soopro Pathshala provides HTML MCQ(Multiple Choice Questions)


1. How many sizes of headers are available in HTML by default?

a) 1

b) 2

c) 3

d) 6

View Answer

Answer: (d) 6



2. What is the smallest header in HTML by default?

a) h1

b) h2

c) h3

d) h6

View Answer

Answer: (d) h6



3. What are the types of lists available in HTML?

a) ordered, unordered lists

b) bulleted, numbered lists

c) named, unnamed lists

d) none of the above

View Answer

Answer: (a) ordered, unordered lists



4. HTML files are saved by default with the extension?

a) .html

b) .h

c) .ht

d) none of the above

View Answer

Answer: (a) .html



5. In which part of the HTML metadata is contained?

a) head tag

b) title tag

c) html tag

d) body tag

View Answer

Answer: (a) head tag



6. Which element is used to get highlighted text in HTML5?

a) u tag

b) mark tag

c) highlight tag

d) b tag

View Answer

Answer: (b) mark tag



7. Which of the following elements in HTML5 defines video or movie content?

a) video tag

b) movie tag

c) audio tag

d) media tag

View Answer

Answer: (a) video tag



8. Which of the following is not the element associated with the HTML table layout?

a) alignment

b) color

c) size

d) spanning

View Answer

Answer: (b) color



9. How to create an unordered list in HTML?

a) ul tag

b) ol tag

c) li tag

d) i tag

View Answer

Answer: (a) ul tag



10. How to create an ordered list in HTML?

a) ul tag

b) ol tag

c) li tag

d) i tag

View Answer

Answer: (b) ol tag



11. Which of the following tag is used to define options in a drop-down selection list?

a) select tag

b) list tag

c) dropdown

d) option

View Answer

Answer: (d) option tag



12. Which of the following tag is used to add rows in the table?

a) td

b) th

c) tr

d) none of the above

View Answer

Answer: (c) tr tag



13. The hr tag in HTML is used for -

a) new line

b) vertical ruler

c) new paragraph

d) horizontal ruler

View Answer

Answer: (d) horizontal ruler



14. The body tag is usually used after___

a) HTML tag

b) EM tag

c) TITLE tag

d) HEAD tag

View Answer

Answer: (d) HEAD tag



15. Choose the correct HTML tag to make a text italic.

a) i tag

b) italic tag

c) it tag

d) il tag

View Answer

Answer: (a) i tag



16. What does the br tag add to your webpage?

a) Long break

b) Paragraph break

c) Line break

d) None of the above

View Answer

Answer: (c) Line break



17. The first tag inside table tag is ______

a) head tag

b) caption tag

c) th tag

d) td tag

View Answer

Answer: (b) caption tag



18. The symbol used at the beginning of the HREF text is

a) @

b) &

c) $

d) #

View Answer

Answer: (d) #



19. What kind of list will ol tag create?

a) Numbered list

b) Bulleted list

c) unordered list

d) none of the above

View Answer

Answer: (a) Numbered list



20. HTML tags are recognized by___

a) <

b) <= =>

c) < >

d) none of the above

View Answer

Answer: (c) < >



21. Choose the correct HTML tag to make a text bold

a) bd tag

b) bold tag

c) bl tag

d) b tag

View Answer

Answer: (d) b tag



22. Gif and jpg are the two main types of what?

a) animated effects

b) videos

c) images

d) none of the above

View Answer

Answer: (c) images



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

a) body tag

b) font tag

c) head tag

d) title tag

View Answer

Answer: (a) body tag



24. Which character is used to represent when a tag is closed in HTML?

a) #

b) !

c) /

d) \

View Answer

Answer: (c) /



25. Among the following, which is the HTML paragraph tag?

a) p tag

b) pre tag

c) hr tag

d) a tag

View Answer

Answer: (a) p tag



26. Which HTML element is sued for short quote?

a) em tag

b) abbr tag

c) q tag

d) blockquote

View Answer

Answer: (c) q tag



27. Which tag is used to create a dropdown in HTML Form?

a) input tag

b) select tag

c) text tag

d) textarea tag

View Answer

Answer: (b) select tag



28. Full form of td tag?

a) table data

b) table heading

c) table row

d) none of these

View Answer

Answer: (a) table data



29. Which tag is used to create a blank line in HTML?

a) b tag

b) br tag

c) em tag

d) a tag

View Answer

Answer: (b) br tag



30. Which works similar to b element?

a) blockquote

b) strong

c) em

d) i

View Answer

Answer: (b) strong



31. What is the current version of HTML5?

a) HTML 5

b) HTML 1.0

c) HTML 1

d) none of these

View Answer

Answer: (a) HTML 5



32. Which tag is used to insert images into your web page?

a) img

b) scr

c) im

d) none of the above

View Answer

Answer: (a) img tag



33. Which of the following will not be found in the head section?

a) table tag

b) meta tag

c) title tag

d) none of the above

View Answer

Answer: (a) table tag



34. What will be the added by using td tag?

a) rows

b) steps

c) cell

d) columns

View Answer

Answer: (d) columns



35. Which format usually works best for photos?

a) HTML

b) GIF

c) JPG

d) all of the above

View Answer

Answer: (c) JPG



36. Which tag is used to add columns to tables?

a) td tag

b) tr tag

c) th tag

d) colspan

View Answer

Answer: (a) td tag



37. The HTML tgs are all?

a) in lower case

b) in upper case

c) case sensitive

d) not case sensitive

View Answer

Answer: (d) not case sensitive



38. Which tag tells where a link starts?

a) a tag

b) i tag

c) body tag

d) none of the above

View Answer

Answer: (a) a tag



39. What is the correct HTML tag for inserting a line break

a) break tag

b) lb tag

c) pre tag

d) br tag

View Answer

Answer: (d) br tag



40. Tags and text do not show directly on the page are placed in.

a) head tag

b) body tag

c) title tag

d) none of the above

View Answer

Answer: (a) head tag



41. To create a list using lowercase letters, use

a) <ol “a”>

b) <ol=”a”>

c) <ol letter=”a”>

d) <ol type=”a”>

View Answer

Answer: (d)



42. Where do you place the <title> tag in HTML?

a) Base

b) Head

c) Body

d) none of the above

View Answer

Answer: (b) head



43. To start a numbered list with regular numerals, use

a)

    b)

      c)

        d)

          View Answer

          Answer: (d)



          44. The symbol used at the beginning of the HREF text is

          a) @

          b) &

          c) $

          d) #

          View Answer

          Answer: (d) #



          45. The default value of BORDER attribute is

          a) 1 pixel

          b) 2 pixel

          c) 3 pixel

          d) none of the above

          View Answer

          Answer: (a) 1 pixel



          46. The most basic element of any HTML page is

          a) ASCII text

          b) text

          c) BCD text

          d) none of the above

          View Answer

          Answer: (a) ASCII text



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

          a) class

          b) id

          c) dot

          d) all of the above

          View Answer

          Answer: (b) id



          48. Text with tag is diplayed as

          a) list

          b) italic

          c) underline

          d) bold

          View Answer

          Answer: (d) bold



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

          a) style

          b) type

          c) class

          d) none of the above

          View Answer

          Answer: (a) style



          50. Which of the following HTML element is used for canvas graphics?

          a) <css></css>

          b) <paint>

          c) <canvas>

          d) <graphic>

          View Answer

          Answer: (c) <canvas>



          51. HTML contents with no content are called _____

          a) empty elements

          b) elements

          c) html elements

          d) none of these

          View Answer

          Answer: (a) empty elements



          52. __ provides additional information about html elements

          a) attributes

          b) elements

          c) html tags

          d) none of these

          View Answer

          Answer: (a) attributes



          53. Attributes provide _______about elements.

          a) additional information

          b) corresponding information

          c) general information

          d) none of these

          View Answer

          Answer: (a) additioinal information



          54. Which attribute is used to uniquely identifies an element?

          a) id

          b) class

          c) css

          d) none of these

          View Answer

          Answer: (a) id



          55. Which html attribute is used to specifies inline CSS styles?

          a) id

          b) style

          c) class

          d) none of these

          View Answer

          Answer: (b) style



          56. Which attribute specifies the URL of a link?

          a) src

          b) style

          c) class

          d) href

          View Answer

          Answer: (d) href



          57. Which element always starts on a new line, and is usually a block of text?

          a) paragraph

          b) horizontal line

          c) vertical line

          d) none of these

          View Answer

          Answer: (a) paragraph



          58. Which elements help to style and format the content of a webpage.

          a) HTML formatting

          b) html tag

          c) bold element

          d) italic element

          View Answer

          Answer: (a) HTML formatting



          59. Which tag is used to make text bold?

          a) b tag

          b) strong tag

          c) italic tag

          d) none of these

          View Answer

          Answer: (a) b tag



          60. Which tag is used to define mark text?

          a) mark

          b) u

          c) i

          d) none of these

          View Answer

          Answer: (a) mark



          61. Which target attributs Opens the document in the same window/tab as it was clicked?

          a) _self

          b) _blank

          c) _parent

          d) _top

          View Answer

          Answer: (a) _self



          62. Which target attributes Opens the document in a new window or tab

          a) _self

          b) _blank

          c) _parent

          d) _top

          View Answer

          Answer: (b) _blank



          63. Which target attributes Opens the document in the parent frame

          a) _self

          b) _blank

          c) _parent

          d) _top

          View Answer

          Answer: (c) _parent



          64. Which target attributes Opens the document in the full body of the window

          a) _self

          b) _blank

          c) _parent

          d) _top

          View Answer

          Answer: (d) _top



          65. Which option is useful for description of the image, useful for accessibility and when the image cannot be displayed.

          a) src

          b) alt

          c) width

          d) height

          View Answer

          Answer: (b) alt



          66. Which Tag Used to embed images in a webpage?

          a) <img>

          b) <src>

          c) hr

          d) br

          View Answer

          Answer: (a) img tag



          67. Which Tag Used to embed images in a webpage?

          a) <img>

          b) <src>

          c) hr

          d) br

          View Answer

          Answer: (a) img tag



          68. HTML ___ are not displayed in the browser, but they can help document your HTML source code.

          a) comments

          b) title

          c) heading

          d) paragraph

          View Answer

          Answer: (a) comments



          69. HTML ___ element defines a section that is quoted from another source. Browsers usually indent ____elements.

          a) blockquote

          b) q tag

          c) address tag

          d) none of these

          View Answer

          Answer: (a) blockquote



          70. HTML ___ tag defines a short quotation.

          a) blockquote

          b) q tag

          c) address tag

          d) none of these

          View Answer

          Answer: (b) q tag



          71. The HTML ____ tag defines an abbreviation or an acronym

          a) blockquote

          b) q tag

          c) address tag

          d) abbr

          View Answer

          Answer: (d) abbr



          72. The HTML ___ tag defines the contact information for the author/owner of a document or an article.

          a) blockquote

          b) q tag

          c) address tag

          d) abbr

          View Answer

          Answer: (c) address tag



          73. HTML ___ allow web developers to arrange data into rows and columns.

          a) blockquote

          b) q tag

          c) address tag

          d) table

          View Answer

          Answer: (d) table



          74. Each table cell is defined by a ___.

          a) td

          b) tr

          c) th

          d) none of the above

          View Answer

          Answer: (a) td



          75. Each table row starts with a ___

          a) td

          b) tr

          c) th

          d) none of the above

          View Answer

          Answer: (b) tr



          76. Sometimes you want your cells to be table header cells. In those cases use the ___ tag

          a) td

          b) tr

          c) th

          d) none of the above

          View Answer

          Answer: (c) th



          77. ___ is used to make a cell span multiple columns.

          a) colspan

          b) rowspan

          c) th

          d) none of the above

          View Answer

          Answer: (a) colspan



          78. ___ is used to make a cell span multiple rows..

          a) colspan

          b) rowspan

          c) th

          d) none of the above

          View Answer

          Answer: (b) rowspan



          79. HTML ____allow web developers to group a set of related items in lists.

          a) lists

          b) rowspan

          c) th

          d) none of the above

          View Answer

          Answer: (a) lists



          80. The __ element is used as a container for other HTML elements..

          a) div

          b) lists

          c) th

          d) none of the above

          View Answer

          Answer: (a) div



          81. The HTML ____ element is used to draw graphics on a web page.

          a) canvas

          b) style

          c) script

          d) none of these

          View Answer

          Answer: (a) canvas



          82._____Allows users to select one or more options from a dropdown.

          a) select dropdownlist

          b) paragraph

          c) margin

          d) none of these

          View Answer

          Answer: (a) select dropdownlist



          83.________Used to associate labels with form elements for better accessibility

          a) Labels

          b) Textarea

          c) inputbox

          d) none of these

          View Answer

          Answer: (a) Labels



          84.The HTML ____ element is the most used form element.

          a) input

          b) output

          c) id

          d) style

          View Answer

          Answer: (a) input



          85.An ____ is used to collect user input

          a) html form

          b) input form

          c) input button

          d) none of these

          View Answer

          Answer: (a) html form



          86.The _____ tag is used to include external resources, typically for stylesheets

          a) link

          b) body

          c) head

          d) none of these

          View Answer

          Answer: (a) link



          87.____Defines the title of the webpage shown in the browsers title bar or tab.

          a) title

          b) head

          c) body

          d) none of these`

          View Answer

          Answer: (a) title



          88.The _____ element specifies the base URL and/or target for all relative URLs in a page

          a) base

          b) link

          c) style

          d) none of these`

          View Answer

          Answer: (a) base



          89.The _____ element is used to define client-side JavaScripts.

          a) script

          b) style

          c) link

          d) none of these`

          View Answer

          Answer: (a) script



          90.The ___ element defines the relationship between the current document and an external resource.

          a) link

          b) head

          c) body

          d) none of these`

          View Answer

          Answer: (a) link



          91.The _____ element defines the title of the document.

          a) title

          b) body

          c) head

          d) none of these`

          View Answer

          Answer: (a) title



          92.HTML ____ is data about the HTML document. Metadata is not displayed.

          a) metadata

          b) head

          c) title

          d) body

          View Answer

          Answer: (a) metadata



          93.The HTML ______ element is a container for the following elements: title, style,meta, link, script, and base.

          a) head

          b) body

          c) meta

          d) none of these

          View Answer

          Answer: (a) head



          94.An inline frame ___ is a HTML element that loads another HTML page within the document..

          a) iframe

          b) html form

          c) google form

          d) none of these

          View Answer

          Answer: (a) iframe



          95.The HTML ___ attribute is used to specify a unique id for an HTML element.

          a) class

          b) id

          c) google form

          d) none of these

          View Answer

          Answer: (b) id



          96.The HTML __ attribute is used to specify a class for an HTML element.

          a) class

          b) id

          c) google form

          d) none of these

          View Answer

          Answer: (a) class



          97.____Target all elements of a specific type

          a) element selectors

          b) class selectors

          c) id selectors

          d) none of these

          View Answer

          Answer: (a) element selector



          98._____Style applied directly within HTML elements using the style attribute

          a) inline css

          b) internal css

          c) external css

          d) none of these

          View Answer

          Answer: (a) inline css



          99.The HTML ____ attribute is used to add styles to an element, such as color, font, size, and more.

          a) style

          b) div

          c) span

          d) none of these

          View Answer

          Answer: (a) style



          100.__is a block-level element, meaning it takes up the full width of its parent container by default, and starts on a new line.

          a) style

          b) div

          c) span

          d) none of these

          View Answer

          Answer: (b) div



          101.____defines vector-based graphics in XML, which can be directly embedded in HTML pages.

          a) style

          b) div

          c) SVG

          d) none of these

          View Answer

          Answer: (c) SVG



          102.The HTML ____ is a container for SVG graphics.

          a) style

          b) svg element

          c) div

          d) none of these

          View Answer

          Answer: (b) svg element



          103.____ is rendered pixel by pixel

          a) canvas

          b) svg element

          c) div

          d) none of these

          View Answer

          Answer: (a) canvas



          104.____ is rendered pixel by pixel

          a) canvas

          b) svg element

          c) div

          d) none of these

          View Answer

          Answer: (a) canvas



          105. An ____ is a HTML element that loads another HTML page within the document.

          a) canvas

          b) svg element

          c) inline iframe

          d) none of these

          View Answer

          Answer: (c) inline iframe



          106. Each table cell is defined by a __ tag..

          a) th

          b) td

          c) tr

          d) none of these

          View Answer

          Answer: (b) td



          107. A table can have a ____ element to describe the table’s purpose or content

          a) caption

          b) td

          c) tr

          d) none of these

          View Answer

          Answer: (a) caption



          108. The HTML ____ tag defines the contact information for the author or owner of a document or an article.

          a) caption

          b) td

          c) address

          d) none of these

          View Answer

          Answer: (c) address



          109. ___ are also part of the code, which gives an explanation of the code.

          a) caption

          b) td

          c) comments

          d) none of these

          View Answer

          Answer: (c) comments



          110. ___Specifies the path URL or local file path to the image file. It’s mandatory.

          a) src attribute

          b) alt attribute

          c) comments

          d) none of these

          View Answer

          Answer: (a) src attribute



          111. A _____ always starts on a new line, and is usually a block of text.

          a) src attribute

          b) alt attribute

          c) paragraph

          d) none of these

          View Answer

          Answer: (c) paragraph



          112. Headings are important for ___ and accessibility.

          a) SEO

          b) alt attribute

          c) paragraph

          d) none of these

          View Answer

          Answer: (a) SEO



          113. The ____ element contains the visible page content.

          a) body

          b) alt attribute

          c) paragraph

          d) none of these

          View Answer

          Answer: (a) body



          114. The ___ element defines a large heading.

          a) body

          b) alt attribute

          c) h1

          d) none of these

          View Answer

          Answer: (c) h1



          115. An ____ is used to collect user input

          a) HTML form

          b) alt attribute

          c) h1

          d) none of these

          View Answer

          Answer: (a) HTML form



          116. ____ Collects plain text

          a) Text input

          b) alt attribute

          c) h1

          d) none of these

          View Answer

          Answer: (a) Text input



          117. The HTML ____ used to create a link.

          a) a element

          b) alt attribute

          c) h1

          d) none of these

          View Answer

          Answer: (a) a element



          118. The ___ element is used to define client-side JavaScripts.

          a) a element

          b) alt attribute

          c) script

          d) none of these

          View Answer

          Answer: (c) script



          119. The _____ element specifies the base URL and/or target for all relative URLs in a page..

          a) a element

          b) base

          c) script

          d) none of these

          View Answer

          Answer: (b) base



          120. The text in the ____ element usually renders in italic.

          a) a element

          b) cite

          c) script

          d) none of these

          View Answer

          Answer: (b) cite