html mcq1
html mcq1
of multiple choice objective questions related to HTML5 elements and their corresponding
attributes. You will find the MCQ questions about the elements <textarea>, <var>, <small>,
<table>, <thead>, <tbody> and <tfoot> elements along with the related attributes of them.
1. The HTML5 attribute, …………………. is used in <textarea> element should be set to a
string that corresponds to the id of the form element that an interactive control such as a
button is associated with.
A) form
B) pattern
C) placeholder
D) control
2. …………………. is the HTML5 attribute that specifies a regular expression against which
the field should be validated.
A) form
B) pattern
C) validate
D) control
3. …………………… is the HTML5 attribute that specifies a short bit of text that is used to help
the user figure out what type of information to fill in for a form control.
A) form
B) pattern
C) placeholder
D) control
5. ………………….. element is used to group the rows within the footer of a table so that
common alignment and style defaults can easily be set for numerous cells.
A) <tgroup>
B) <tfoot>
C) <grows>
D) <frows>
6. The ……………………….. attribute used in <th> element is used to provide a name for a
group of related headers.
A) rheaders
B) groupheaders
C) axis
D) scope
7. The ……………………. attributive used in <th> element takes a space separated list of id
values that correspond to the header cell related to this cell.
A) headers
B) scope
C) thead
D) cell
8. The …………………… attribute specifies the table cells for which the current cell provides
header information.
A) headers
B) scope
C) thead
D) cell
9. The ………………….. element is used to group the rows within the header of a table so that
common alignment and style defaults can easily be set for numerous cells.
A) headers
B) scope
C) thead
D) multi-cell
10. The <title> element must occur within a document’s ………………………. element and
must be present in all valid documents.
A) <meta>
B) <link>
C) <head>
D) <body>
11. ………………….. element is contained only in the <table>, <thead>, <tbody> and <tfoot>
eleemens.
A) <tr>
B) <td>
C) <tt>
D) <dl>
12. …………………….. is a inline element, which is used to indicate that text should be
rendered in monospaced font similar to teletype text.
A) <tr>
B) <td>
C) <tt>
D) <dl>
13. The Boolean attribute ………………………… indicates the browser should begin playing a
video after page load once enough content has been received.
A) autoload
B) autoplay
C) auto-buffer
D) autoloadplay
14. …………………… is the attribute used in <video> element, that is set to the URL of an
image that the browser will use in place of the video before it is loaded and playing.
A) loop
B) controls
C) src
D) poster
15. ……………………….. is the inline element used to indicate an identifier that occurs in a
programming language or a mathematical expression.
A) <expression>
B) <variable>
C) <var>
D) <identifier>
18. The value of frame attribute, ……………………….. indicates only the top and bottom
edges should be displayed.
A) hsides
B) below
C) border
D) rhs
19. ……………………… is empty HTML5 element, which is used to specify multiple media
resources for media elements like audio and video.
A) source
B) resource
C) media
D) multimedia
Answers
1. A) form
2. B) pattern
3. C) placeholder
4. C) button
5. B) <tfoot>
6. C) axis
7. A) headers
8. B) scope
9. C) thead
10. C) <head>
11. A) <tr>
12. C) <tt>
13. B) autoplay
14. D) poster
15. C) <var>
16. B) maxlength
17. A) textarea
18. A) hsides
19. A) source
20. D) <small>
This set of top 20 objective questions on HTML5 element reference includes collections of
multiple choice objective questions related to HTML5 elements and their corresponding
attributes. You will find the questions and answers about the elements <ins>, <label>,
<legend>, <meter>, <link>, <table>, <tr>, <td> along with the related attributes of them.
1. ………………… element in HTML5 is used to indicate that text has been added to the
document.
A) <add>
B) <ins>
C) <fill>
D) <insert>
2. The value of …………….. attribute is a URL that designates a source document or message
for the information inserted.
A) href
B) src
C) cite
D) msg
3. ………………. attribute used in <ins> element is intended to point to information explaining
why the text was changed.
A) inf
B) ctxt
C) cite
D) msg
4. ……………….. attribute used in <ins> element is used to indicate the date and time the
insertion was made.
A) datetime
B) insertdate
C) insertdt
D) insdatetime
5. ………………. element is used to control the generation of key pairs in secured
communications.
A) control key generation
B) control generation key
C) key pair generation
D) key pair control
6. The ………………. element in HTML5 is used to relate descriptions to form controls.
A) <desc>
B) <formdesc>
C) <relate>
D) <label>
7. <legend> is used to assign a caption to a set of form fields as defined by a …………….
element.
A) fieldset
B) caption
C) fieldgroup
D) assign
8. …………………. is the empty element found in the head element specifies relationships
between the current document and other documents.
A) link
B) rel
C) meta
D) join
9. The HTML5 element ……………… defines a scalar measurement within a known range,
similar to what might be represented by gauge.
A) <measure>
B) <meter>
C) <gauge>
D) <scalar>
10. The HTML5 Boolean attribute ………………. .is used to indicate if the style should apply
only the tree it is enclosed within.
A) media
B) scoped
C) type
D) enclosed
11. Style information also can be specified in external style information also can be specified
in external style sheet as defined by …………………….. tag.
A) <link>
B) <rel>
C) <meta>
D) <join>
12. The CSS property ……………… can be used to simulate <sub> element.
A) align
B) horizontal align
C) vertical align
D) sub
13. ………………… attribute used in <table> element sets the width, in pixels, between the
edge of a cell and its content.
A) cellpadding
B) cellspacing
C) colspacing
D) edgespacing
14. ………………. attribute used in <table> element sets the width, in pixels, between the
edge of a cell and its individual cells.
A) cellpadding
B) cellspacing
C) colspacing
D) edgespacing
15. The ……………… attribute specifies the number of columns in the table and is used to
help quickly calculate the size of the table.
A) col
B) num
C) numcol
D) tablecol
16. A value of ………………… in rules attribute used in <table> element specifies horizontal
dividing rules between groups of table cells defined by the thead, tbody, tfoot or cell group
element.
A) cols
B) rows
C) groups
D) all
17. A value of …………….. in rules attributes used in <table> element specifies dividing rules
for rows only.
A) cols
B) rows
C) groups
D) all
18. The attribute ………………. in table is used to provide a text summary of the tables
purpose and structure.
A) caption
B) summary
C) title
D) overview
19. ……………… attribute used in <tbody> element contains an offset as a positive or
negative integer to align characters as related to the char value.
A) charoff
B) char
C) align
D) offset
20. The ………………….. attribute used in <td> element might useful when attempting to
display large tables on small screens.
A) zoomin
B) adjust
C) zoomout
D) abbr
Answers
1. B) <ins>
2. C) cite
3. C) cite
4. A) datetime
5. C) key pair generation
6. D) <label>
7. A) fieldset
8. A) link
9. B) <meter>
10. B) scoped
11. A) <link>
12. C) vertical align
13. A) cellpadding
14. B) cellspacing
15. A) col
16. C) groups
17. B) rows
18. B) summary
19. A) charoff
20. D) abbr
1. ………………… is the element specific attribute of <dl>, which reduces the white space
between list items.
A) compact
B) reduce
C) space
D) eliminate
2. The element …………………. identifies a definition list term in a list of terms and definitions.
A) <dd>
B) <dt>
C) <dl>
D) <definition>
3. In HTML5 the element ……………….. is also used within <details> and <figure> tags to
represent a caption for content.
A) <dd>
B) <dt>
C) <dl>
D) <caption>
5. The default text size for a document can be set using the size attribute of the
………………… element.
A) <base>
B) <basefont>
C) <bdo>
D) <big>
6. ……………….. attribute of <form> element specifies the list of character encoding for input
data that must be accepted by the server processing the form.
A) list-charset
B) accept-charset
C) action-charset
D) form-charset
7. ………………… attribute contains the URL of the server program that will process the
contents of the form.
A) src
B) ismap
C) action
D) desc
8. ………………… attribute in <img> element indicates that the URL of the server program
that will process the contents of the form.
A) src
B) ismap
C) action
D) desc
9. …………….. attribute in image element specifies the URL of a document that contains a
long description of the image.
A) desc
B) longURL
C) longdesc
D) deepdesc
10. …………….. is the nonstandard attribute, which contains the URL of an image to be
initially loaded.
A) lowsrc
B) src
C) start
D) desc
11. …………… attribute makes the image support client-side image mapping.
A) usemap
B) map
C) border
D) imgmap
12. ……………. is the element specific attribute of <input> element, which is used to list the
MIME types accepted for the uploads when using a file upload control.
A) form
B) accept
C) fromaction
D) upload
13. ……………… is the HTML5 attribute used in <input> element target when the button is
clicked.
A) form
B) formenctype
C) fromaction
D) action
14. ……………… attribute in <input> element indicates how form data should be encoded
before being sent to the server.
A) form
B) formenctype
C) fromaction
D) action
15. ………………… form elements will not be submitted, nor will they receive any focus from
the keyboard or mouse.
A) paused
B) disabled
C) closed
D) inactive
16. ………………… is the HTML5 attribute used in <input> elements that specifies a regular
expression against which the field should be validated.
A) fomat
B) pattern
C) validate
D) required
17. The HTML5 attribute ……………………. specifies a short bit of text that is used to help the
user figure out what type of information to fill in for a form control.
A) placeholder
B) pattern
C) type
D) value
18. Which of the following is/are the values used in type attribute used in <input> element.
i) button ii) file iii) textbox iv) radio
A) i, ii and iii only
B) i, iii and iv only
C) i, ii and iv only
D) All i, ii, iii and iv
19. A value of ……………. for the type attribute used in <input> element indicates a control
that allows the viewer to upload file to a server.
A) text
B) upload
C) file
D) object
20. A ……………….. form control often is used to preserve state information between pages.
A) hidden
B) preserved
C) stored
D) transferred
Answers
1. A) compact
2. B) <dt>
3. B) <dt>
4. C) <figure>
5. B) <basefont>
6. B) accept-charset
7. C) action
8. B) ismap
9. C) longdesc
10. A) lowsrc
11. A) usemap
12. B) accept
13. C) fromaction
14. B) formenctype
15. B) disabled
16. B) pattern
17. A) placeholder
18. C) i, ii and iv only
19. C) file
20. A) hidden
1. In HTML5 ………………. attribute is set to the MIME type for how data should be
transmitted to the URL specified in the action attribute.
A) formenctype
B) formmethod
C) formtarget
D) formvalidate
2. In HTML5 …………….. attribute indicates how form information should be transferred to the
server using particular HTTP method.
A) formenctype
B) formmethod
C) formtarget
D) formvalidate
3. A …………. value in the formmethod attribute within button element indicates that form data
should be appended to the URL specified by the action attribute creating a query string.
A) post
B) get
C) put
D) delete
4. A value of ………………… for formmethod attribute transfers that data of the form in the
message body using the HTTP post method.
A) post
B) get
C) put
D) delete
5. In HTML5 …………….. attribute is set to the name of a window or frame that the button
action will target the result of action, similar to the target attribute on <a> and <form> tags.
A) formenctype
B) formmethod
C) formtarget
D) formvalidate
6. In primary canvas method ……………… returns an object that exposes the API necessary
for accessing the drawing functions.
A) width
B) height
C) toDataURL
D) getContext
9. ……………… method of canvas rectangle draws the outline for the rectangle defined by the
starting point(x,y) and the width w and height h.
A) drawRect(x,y,w,h)
B) strokeRect(x,y,w,h)
C) fillRect(x,y,w,h)
D) outlineRect(x,y,w,h)
10. …………………. attribute of <col> element is used to set the character on which the cells
in a column should be aligned.
A) span
B) char
C) charoff
D) align
11. In HTML5 <col> element, ………….. attribute is used to indicate the number of characters
by which the column data should be offset from t he alignment characters specified by the
char value.
A) span
B) char
C) charoff
D) align
12. ……………….. attribute applies the attributes of the col element to additional consecutive
columns.
A) span
B) char
C) charoff
D) align
13. A typical value for ……………… attribute is a period ( . ) for aligning numbers or monetary
values.
A) span
B) char
C) charoff
D) align
15. The HTML5 element …………………. contains option elements that populate an input
element with type=”list”.
A) <datalist>
B) <dt>
C) <dd>
D) <command>
16. Under HTML5, …………….. element has an overloaded meaning and may also be used to
enclose the content within <details> and <figure> tags.
A) <datalist>
B) <dt>
C) <dd>
D) <command>
17. The HTML5 element ……………. represents additional information or interactive elements
that can be shown on demand.
A) <details>
B) <explained>
C) <dd>
D) <additional>
19. The ……………….. element indicates a generic block of content that should be treated as
a logical unit for scripting or styling purposes.
A) division
B) definition
C) details
D) directory list
Answers
1. A) formenctype
2. B) formmethod
3. B) get
4. A) post
5. C) formtarget
6. D) getContext
7. C) drawRect
8. C) i, iii and iv only
9. B) strokeRect(x,y,w,h)
10. B) char
11. C) charoff
12. A) span
13. B) char
14. A) 1
15. A) <datalist>
16. C) <dd>
17. A) <details>
18. D) dfn
19. A) division
20. A) <dl>
1. …………………… are often used to exclude content from older browsers, particularly those
that do not understand client side scripting or style sheet.
A) Excludes
B) Comments
C) Coords
D) Messages
2. ……………. element defines a hyperlink, the named target destination for hyperlink, or both.
A) Anchor
B) Charset
C) Coords
D) Href
3. ……………………. is the element specific attribute which defines the character encoding of
the linked resource.
A) Coords
B) Href
C) Rel
D) Charset
4. ……………….. is the single required attribute for anchors defining a hypertext source link.
A) Coords
B) Href
C) Rel
D) Charset
7. …………………. is the HTML5 specific attribute which is used to specify the URL(s) that will
be notified when a link is activated.
A) ping
B) rel
C) rev
D) name
8. For anchors containing the href attribute, the ………………………. attribute specifies the
relationship of the target object to the link object.
A) ping
B) rel
C) rev
D) name
9. …………………….. attribute is useful for indicating where an object came from, such as
author of a document.
A) ping
B) rel
C) rev
D) name
10. ……………………. attribute is used to define a selectable region for hypertext source links
associated with a figure in order to create an image map.
A) shape
B) circle
C) rect
D) map
11. Which of the following is/are the possible values of rel attribute used in anchor element.
i) alternate ii) extra iii) author iv) help
A) i, ii and iii only
B) ii, iii and iv only
C) i, iii and iv only
D) All i, ii, iii and iv
12. When …………………… attribute is set on <abbr> element, browsers may render a dotted
underline, which is useful to indicate the presence of a tooltip that may contain the expansion
for abbreviation.
A) address
B) title
C) area
D) name
14. The ………………….. element defines a hotspot region on an image and associates it with
a hypertext link.
A) address
B) title
C) area
D) name
15. The <area> element uses …………………… attribute which contains a text string
alternative to display in browsers that cannot display images.
A) rel
B) href
C) alt
D) name
16. ………………… attribute in an area element contains a set of values specifying the
coordinates of the hotspot region.
A) shape
B) circle
C) coords
D) map
17. Modern markup specifications encourage developers to use a ……………….. tag instead
of <b>.
A) <bolt>
B) <strong>
C) <bl>
D) <sharp>
18. ……………………. is the empty element found within the head element specifies the base
URL stem to be used for all relative URL contained within a document.
A) <base>
B) <basefont>
C) <bdo>
D) <big>
19. The block element …………………… indicates that the enclosed text is an extended
quotation.
A) <quotation>
B) <quote>
C) <blockquote>
D) <block>
20. The …………………. attribute forces the insertion of vertical space so that the tagged text
can be positioned with respect to images.
A) clear
B) space
C) vspace
D) textspace
Answers
1. B) Comments
2. A) Anchor
3. D) Charset
4. B) Href
5. B) media
6. C) name
7. A) ping
8. B) rel
9. C) rev
10. A) shape
11. C) i, iii and iv only
12. B) title
13. A) address
14. C) area
15. C) alt
16. C) coords
17. B) <strong>
18. A) <base>
19. C) <blockquote>
20. A) clear
1. …………….. event occurs when an element loses focus, typically either by clicking the
mouse or tabbing.
A) onchange
B) onblur
C) onfocus
D) onreset
2. HTML5 event attribute ……………….. signals that the form control has lost user focus and
its value has been modified during its last access.
A) onchange
B) onblur
C) onfocus
D) onreset
3. …………….. event invoked generally by the cancellation of an image load but may happen
on any communication that aborts.
A) onblur
B) onchange
C) onabort
D) onended
4. ……………….. event fires when a media element’s playback has ended because the end of
the data resource has been reached.
A) onblur
B) onchange
C) onabort
D) onended
5. HTML5 event attribute …………………… fires when the user agent has the media’s
metadata describing the media’s characteristics.
A) onload
B) onloaded data
C) onloaded metadata
D) onloadstart
6. ………………… event fires when the user agent can playback the media data at the current
play position for the first time.
A) onload
B) onloaded data
C) onloaded metadata
D) onloadstart
7. HTML5 event attribute …………………… fires when a page is suspended through not
necessarily fully unloaded.
A) onpageshow
B) onpagehide
C) onpopstate
D) onselect
8. In HTML5 event attribute, ………………….. fires when the selection state changes for the
window.
A) onpageshow
B) onpagehide
C) onpopstate
D) onselect
9. ………………… event generally applies to media elements, but Ajax syntax has used a
similar event.
A) onpopstate
B) onprogress
C) onselect
D) onstalled
10. The ………………… event should remain until the context menu is dismissed.
A) onshow
B) onstalled
C) onselect
D) onpageshow
11. The ………………. event may occur due to history navigation or may be triggered
programmatically.
A) onpopstate
B) onprogress
C) onselect
D) onstalled
12. ……………….. event may move through various states as network-fetched data is
received.
A) onreadystatechange
B) onratechange
C) onredo
D) onreset
13. HTML5 event attribute ………………….. is used to capture various events generally
related to communication using Ajax, through may apply to arbitrary URL loading using media
elements like images, audio and video.
A) onload
B) onended
C) onerror
D) oninput
14. ………………… event fires when a media stream is intentionally not being fetched but is
not yet fully loaded.
A) onstalled
B) onsubmit
C) onsuspend
D) onunload
15. The HTML5 event ……………….. fires when media element play stops but new data is
expected shortly.
A) onwaiting
B) onunload
C) onundo
D) onstop
16. ……………… event can be fired by direct targeting of the element or the event bubbling
up.
A) onmenu
B) oncontext
C) oncontextmenu
D) onstop
17. HTML5 defines ………………. event attribute to pass the message between client and
server as well as between documents that this handler can monitor.
A) onmessage
B) onlink
C) onpass
D) onrelease
18. ……………… event fires when the user agent begins to fetch media data, which may
include initial metadata.
A) onload
B) onloadstart
C) onloadeddata
D) onloadedmetadata
Answers
1. B) onblur
2. A) onchange
3. C) onabort
4. D) onended
5. C) onloadedmetadata
6. B) onloadeddata
7. B) onpagehide
8. C) onpopstate
9. B) onprogress
10. A) onshow
11. A) onpopstate
12. A) onreadystatechange
13. C) onerror
14. C) onsuspend
15. A) onwaiting
16. C) oncontextmenu
17. A) onmessage
18. B) onloadstart
1. HTML5 introduces an ………………… element, which may be used withing content to
represent material that is tangential.
A) article
B) aside
C) details
D) section
2. The ……………… element is used to define a discrete unit of content such as a blog post,
comment, article and so on.
A) article
B) post
C) blog
D) comment
3. In HTML5 ……………. element was introduced for highlighting content similarly to how a
highlighter pen might be used on important text in a book.
A) highlight
B) mark
C) bookmark
D) marker
4. The HTML5 element, <figure> simply groups items within an enclosed ………………. tag.
A) <dd>
B) <dr>
C) <dt>
D) <fd>
5. You can associate the images enclosed within figure element with the caption defined by
……… tag.
A) <dd>
B) <dr>
C) <dt>
D) <fd>
7. The ………………. element is used to render simple graphics such as line art, graphs and
other custom graphical elements on the client side.
A) canvas
B) drawing
C) graphs
D) shapes
8. In HTML5, it is possible to validate data entry by setting the ………………… attribute for a
form control.
A) validate
B) required
C) restrict
D) allow
10. It is possible to advise the browser to display the ……………….. suggestions provided for
fields if similar field names have been used in the past.
A) autofill
B) autoplace
C) autofocus
D) autocomplete
11. In HTML5, the ………………….element can contain on dt element to specify the summary
of the details as well as one dd element to supply the actual details.
A) figure
B) details
C) article
D) canvas
12. The attribute effectively renders the iframe as an inline include, which allows the parent
documents CSS to affect the contents of the iframe.
A) seamless
B) sandbox
C) framebox
D) inlineframe
13. The ………………. attribute prevents the iframe from pulling in content from any source
other than the iframe itself.
A) seamless
B) sandbox
C) framebox
D) inlineframe
14. The attribute ……………………….. is used to create the name/value pairs on the desired
data.
A) itemrop
B) itemscope
C) itemref
D) itemnav
15. The ………………… attribute can be set on the parent item to a list of space separated IDs
to indicate additional elements that should be traversed to find name/value pairs for this item.
A) itemrop
B) itemscope
C) itemref
D) itemnav
16. In sandbox attribute of iframe element, ………………………. allows the iframe to pull in
content from elsewhere in the same domain.
A) allow-same-origin
B) allow-scripts
C) allow-forms
D) allow-content
17. ………………….. in sandbox attribute allows the sandboxed iframe to run scripts from the
same domain.
A) allow-same-origin
B) allow-scripts
C) allow-forms
D) allow-content
18. ……………….. element is used to define a region that will be used as output from some
calculation or form control.
A) form
B) output
C) details
D) control
19. The ………………… element represent some form of extra details such as a tooltip or
revealed region that may be shown to user.
A) control
B) revealed
C) details
D) extra
20. ………………. attribute allows you to specify the default data rather than relying on what
may have been entered in the browser previously.
A) autofill
B) autoplace
C) autofocus
D) autocomplete
Answers
1. B) aside
2. A) article
3. B) mark
4. C) <dt>
5. C) <dt>
6. D) nav
7. A) canvas
8. B) required
9. C) autofocus
10. D) autocomplete
11. B) details
12. A) seamless
13. B) sandbox
14. A) itemrop
15. C) itemref
16. A) allow-same-origin
17. C) allow-forms
18. B) output
19. C) details
20. D) autocomplete
1. The CSS equivalent of HTML4 element <big>, which was removed from HTML5 is …
A) font-size:large
B) font-size:larger
C) font-size:big
D) font-size:bigger
2. Which of the following is/are the HTML4 elements removed from HTML5.
i) <basefont> ii) <tt> iii) <hr> iv) <u>
A) i, ii and iii only
B) ii, iii and iv only
C) i, ii and iv only
D) All i, ii, iii and iv
4. …………………… is/are the CSS equivalent(s) used in HTML5 in the replace of HTML4
element <font>.
i) font-family ii) font-size iii) font
A) i and ii only
B) ii and iii only
C) i and iii only
D) All i, ii and iii
8. The ……………………. element is used with HTML’s new details and figure element to
summarize the details.
A) <dd>
B) <b>
C) <dt>
D) <dr>
10. Which of the following is/are the HTML4 attributes removed in HTML5.
i) align ii) hidden iii) size iv) type
A) i, ii and iii only
B) i, iii and iv only
C) i, ii and iv only
D) All i, ii, iii and iv
11. HTML5 uses the input element to create text field and button backup with appropriate
server-side script instead of …………………. element used in previous versions.
A) frameset
B) isindex
C) applet
D) acronym
12. “abbr” element is used in HTML5 instead of ……………….. element used in HTML4.
A) dir
B) isindex
C) applet
D) acronym
13. In HTML5, ………………………… defines a region to be used for bitmap drawing using
JavaScript.
A) figure
B) hgroup
C) canvas
D) aside
14. In HTML5 …………………….. defines a group of content that should be used as a figure
and may be labeled by a legend element.
A) figure
B) hgroup
C) canvas
D) aside
15. Which of the following is/are the new elements added by HTML5.
i) frame ii) footer iii) header iv) section
A) i, ii and iii only
B) ii, iii and iv only
C) i, ii and iv only
D) All i, ii, iii and iv
17. Any child of a tag with an itemscope attribute can have an ………………….. attribute set in
order to add a property to that item.
A) itemscope
B) itemref
C) itemrop
D) itemid
19. Which of the following is/are the key attributes added by HTML5.
i) tabindex ii) itemtype iii) text iv) hidden
A) i, ii and iii only
B) ii, iii and iv only
C) i, ii and iv only
D) All i, ii, iii and iv
20. ……………………. is the new attribute added by HTML5, which specifies user-defined
metadata that may be put on tags without concern of collision with current or future attributes.
A) data-x
B) data-y
C) datatype
D) datascope
Answers
1. B) font-size:larger
2. C) i, ii and iv only
3. B) <tt>
4. D) All i, ii and iii
5. A) <small>
6. D) <s>
7. A) <dd>
8. C) <dt>
9. B) ii and iii only
10. B) i, iii and iv only
11. B) isindex
12. D) acronym
13. C) canvas
14. A) figure
15. B) ii, iii and iv only
16. A) nav
17. C) itemrop
18. B) itemref
19. C) i, ii and iv only
20. A) data-x
1. The HTML markup elements are called ……………………, which do not enclose any
content, so not need to close tags.
A) empty elements
B) open elements
C) blank elements
D) containing elements
2. In the case of ………………., self-close identification schema are used for empty elements.
A) XHTML
B) HTML
C) DHTML
D) XML
3. Which of the following is/are the examples of empty elements in HTML markup.
i) <br> ii) <hr> iii) h1 iv) img
A) i, ii and iii only
B) ii, iii and iv only
C) i, ii and iv only
D) i, ii, iii and iv only
4. The …………….. statement indicates the particular version of HTML or XHTML being used
in the document.
A) <meta>
B) <!DOCTYPE>
C) <base>
D) <link>
7. If a web page does not update correctly on reload, holding down the ………………… key
while clicking the reload button, refers the page correctly.
A) shift
B) ctrl
C) alt
D) up arrow
8. The ………………… does not consider any of the browser innovations of advanced
features such as style sheets, scripting or frames.
A) HTML 2.0
B) HTML 2.2
C) HTML 3.0
D) HTML 3.2
9. ………………. is an HTML finalized by the W3C in early 1997 that standardized most of the
HTML features introduced in browsers such as Netscape 3.0
A) HTML 2.0
B) HTML 2.2
C) HTML 3.0
D) HTML 3.2
10. In ………………, we can not replace the <body> tag with a <frameset> tag, which
encloses potentially numerous <frame> tags.
A) HTML2.0
B) HTML3.0
C) HTML4.0
D) HTML5
11. The <frameset> tag should also include a ……………….. element that provides a version
of the page for browsers that do not support frames.
A) noframes
B) emptyframes
C) blankframes
D) openframes
12. A/An ……………. tag specifies an absolute URL address that is used to provide server
and directory information for particularly specified URL address called relative links, used with
in the document.
A) <base>
B) <link>
C) <object>
D) <script>
13. A/An ……………… tag specifies a special relationship between the current document and
another document.
A) <base>
B) <link>
C) <object>
D) <script>
14. A/An …………………… tag allows programs and other binary objects to be directly
embedded in a web page.
A) <base>
B) <link>
C) <object>
D) <script>
15. A/An ………………. tag is used to specify a style sheet used by the document.
A) <base>
B) <link>
C) <object>
D) <script>
16. A ……………… tag allows scripting language code to be either directly embedded within
or more appropriately, linked to form a web page.
A) <base>
B) <link>
C) <style>
D) <script>
17. Which of the following is the correct way of linking external style sheet in a HTML
document.
A) <link rel=”stylesheet” href=”universal.css” type=”text/css”>
B) <link rel=”sheet” href=”universal.css” type=”text/css”>
C) <link rel=”externalsheet” href=”universal.css” type=”text/css”>
D) <link rel=”css” href=”universal.css” type=”text/css”>
18. A ……………… tag is used to enclose document wide style specifications, typically in
cascading style sheet(css) format.
A) <base>
B) <link>
C) <style>
D) <script>
19. Within <body> tag, ……………………. define structural content blocks such as
paragraph(p), div, lists(ul) or headings(h1-h6).
A) plain elements
B) outline elements
C) block level elements
D) inline elements
20. The elements such as bold(b), italic(i), strong(strong), emphasis(em) are the examples of
…………….
A) plain elements
B) outline elements
C) block level elements
D) inline elements
21. A ……………. defines the actual elements, attributes and elements relationships that are
valid in documents.
A) DCD
B) DTD
C) DDT
D) DIT
22. The process of checking whether a document conforms to the rules of DTD is called
……………..
A) checking
B) validation
C) conformation
D) declaration
23. The ……………………. declaration allows validation software to identify the HTML/DTD
being followed in a document, and verify the document is syntactically correct.
A) <meta>
B) <!DOCTYPE>
C) <base>
D) <link>
24. State whether the following statements about HTML and XHTML are True or False.
i) The markups in HTML are case sensitive but XHTML is not.
ii) In some web server the attribute values may be case sensitive
iii) XHTML is sensitive to a single white space character for <pre> element.
A) i-True, ii-True, iii-False
B) i-False, ii-True, iii-True
C) i-True, ii-False, iii-True
D) i-False, ii-True, iii-False
Answers
1. A) empty elements
2. A) XHTML
3. C) i, ii and iv only
4. B) <!DOCTYPE>
5. A) xmlns
6. C) <!– –>
7. A) shift
8. A) HTML 2.0
9. D) HTML 3.2
10. D) HTML5
11. A) noframes
12. A) <base>
13. B) <link>
14. C) <object>
15. B) <link>
16. D) <script>
17. A) <link rel=”stylesheet” href=…>
18. C) <style>
19. C) block level elements
20. D) inline elements
21. B) DTD
22. B) validation
23. B) <!DOCTYPE>
24. B) i-False, ii-True, iii-True
1) A world wide web contains web pages …….
A. residing in many computers
B. created using HTML
C. with links to other web pages
D. residing in many computers linked together using HTML2) Which of the following is used as
character based browser?
A. Mosaic
B. Internet Explorer
C. Netscape
D. Lynx
3) A…….. is a network in which the computers are connected directly, usually by some type of
cable.
A. LAN
B. MAN
C. CAN
D. HAN
11) The World Wide Web Consortium (W3C) is a group which is lead by
A. Tim Berners Lee
B. Tim Thompson
C. Dave Cutler
D. None of the above12) The ………. tag defines the relationship between a document and an
external resource.
A. <src>
B. <href>
C. <anchor>
D. <link>
13) The Internet uses the TCP/IP as its protocol engine and this uses
A. All of the ISO/OSI layers
B. Only five of the ISO/OSI layers
C. Only six of the ISO/OSI layers
D. Only two of the ISO/OSI layers
14) The Internet based e-mail offers two types of access on the Internet.
A. Web based e-mail and post office protocol based e-mail
B. Data based e-mail and Internet protocol based e-mail
C. Shell based e-mail and post office protocol based e-mail
D. None of the above
15) The …… tag provides a way to create numbered or alphanumeric lists rather than bullets.
A. <ul>…</ul>
B. <ol>…</ol>
C. <li>…</li>
D. <i>….</i>
17) Which of the following options do not hold good in case of sending your E-mail by the E-
mail service providers?
A. The ESPs charge is independent of the connect time
B. The ESPs charge is dependent on the connect time
C. You can send e-mail message to a fax number
D. The ESPs existed before the Internet caught the country by storm
18) Choose the correct HTML to right-align the content inside a table cell.
A. <td valign=”right”>
B. <tdright>
C. <td align=”left”>
D. <td rightalign>
19) The symbol that identifies the “href” attribute as the name of a NAME anchor rather than
an address or file name is
A. “&”
B. “$”
C. “#”
D. “!”
Answers
1) D. residing in many computers linked together using HTML
2) D. Lynx
3) A. LAN
4) C. Used to download and upload files
5) C. Both A and B
6) A. the look and feel of a website
7) B. BPS
8) A. U.S. government
9) A. red or purple
10) B. Internet Engineering Research Task Force
11) A. Tim Berners Lee
12) D. <link>
13) B. Only five of the ISO/OSI layers
14) A. Web based e-mail and post office protocol based e-mail
15) B. <ol>…</ol>
16) A. It stores the message when network traffic is low and transfers it when network traffic is
high
17) A. The ESPs charge is independent of the connect time
18) C. <td align=”left”>
19) C. “#”
20) D. <table><tr><td>
1) In 1972 …….. joined the ranks of ARPAnet.
A. email
B. voice
C. data
D. file2) A home page is
A. An index of the page
B. Internet photo storing page
C. Appears while clicking
D. The first page of the web page
3) The first step of web site project is……..
A. set the programmers for the project
B. set the overall goal for the project
C. set the hardware for the project
D. set the software for the project
4) The program which can be used to make your computer act as a terminal is
A. Terminal Stimulation Program
B. Terminal Emulsion Program
C. Terminal Emulation Program
D. None of the above
5) The …… element can be used to identify your HTML file to the outside world.
A. Title
B. Body
C. Head
D. None of the above
9) ………. occurs when the browser encounters a color that it does not support.
A. Banding
B. Clipping
C. Dithering
D. Non-Dithering
10) The following is best suitable for remote administration of a computer.
A. WAIS
B. Telnet
C. Browsers
D. None of the above
11) Which one of the following tags is used to insert graphics in the web page.
A. <IMAGE>
B. <IMAGES>
C. <IMG>
D. <GRAPHICS>
12) The …….. is a conceptual layout device that organizes the page into columns and rows.
A. table
B. grid
C. matrix
D. line
13) The International Standards Organization’s Open System Interconnect reference model for
network designs defines
A. Seven functional layers for the network
B. Six functional layers for the network
C. Eight functional layers for the network
D. None of the above
15) Frames are created via the ……… tags in an HTML document.
A. <form>….</form>
B. <frameset>….</frameset>
C. <body>….</body>
D. <head>….</head>
16) Email works on one of the following principles. Which is the one?
A. Forward and Backward Principle
B. Store and Retrieve Principle
C. Store and Forward Principle
D. Front and Back Principle
18) What is the correct HTML tag for inserting a line break?
A. <break>
B. <br>
C. <b>
D. <line>
19) Every resource available on the web has an address that may be encoded by a
A. URI
B. HTTP
C. Both A and B
D. None of the above
20) Which domain must be present in the website address (URL) of a university library?
A. .org
B. .gov
C. .edu
D. .com
Answers
1) A. email
2) D. The first page of the web page
3) B. set the overall goal for the project
4) C. Terminal Emulation Program
5) A. Title
6) B. Network Address, Host Address, Broad Cast Address
7) C. Military use
8) D. 1-7
9) C. Dithering
10) B. Telnet
11) C. <IMG>
12) B. grid
13) A. Seven functional layers for the network
14) C. i-True, ii-True, iii-False
15) B. <frameset>….</frameset>
16) C. Store and Forward Principle
17) D. i and iii only
18) B. <br>
19) A. URI
20) C. .edu
5) URI is used to
A. Link to another document or source
B. Create an image map
C. Cite an external reference
D. All of the above
6) A …….. include the protocol the browser uses to access the file, server to domain name,
the relative path and the file name.
A. complete URL
B. incomplete URL
C. site URL
D. Web URL
10) Your web browser may be able to play some types of files directly. Whenever your web
browser encounters a file it cannot play.
A. It does not execute the file
B. It displays an error message
C. It copies the files to your computer and runs the helper application.
D. None of the above
13) The TCP/IP is an implied suite of protocols that has been made standard by
A. UN Secretary of Defense
B. International Standard Organization(ISO)
C. The Internet Engineering Task Force
D. None of the above
16) What do you think is not correct in regard to the E-mail system?
A. Using encryption you could electronically deliver confidential documents saving time and
money
B. Limited only to Local Area Network
C. Cost of sending messages across the world is same as that of sending across the city.
D. If the recipient is not around, the message is delivered to his mailbox.
17) The tag to give visual division between sections of the page, and which causes the
browser to draw an embossed line is
A. <HL>
B. <HR>
C. <UR>
D. None of the above
18) The ……attribute specifies the relationship between the linked and current document.
A. rel
B. size
C. type
D. face
19) The web relies on the following mechanisms to make its resource readily available
A. A uniform naming scheme
B. Protocols
C. Hypertext
D. All of the above
20) What is the correct HTML for making a text input field?
A. <input type=”textfield”/>
B. <textinput type=”text”>
C. <textfield>
D. <input type=”text”/>
Answers
1) B. Remote Login, File Transfer, Remote Printing
2) B. Header and Body
3) C. go along different paths based on path availability
4) D. All
5) D. All of the above
6) A. complete URL
7) C. Uniform Resource Locator
8) C. Both A and B
9) A. Interlacing
10) C. It copies the files to your computer and runs the helper application.
11) B. <BR>
12) A. Image maps
13) A. UN Secretary of Defense
14) C. <OL>
15) D. <textarea>
16) B. Limited only to Local Area Network
17) B. <HR>
18) A. rel
19) D. All of the above
20) D. <input type=”text”/>
B) Pathways
C) Routers
D) Domains
B) Telnet
C) Web browser
D) Mail
A) Telnet
B) WAIS
C) Browsers
D) HTML
A) 0
B) 10
C) 110
D) 11
A) CELL SPACING
B) CELL PADDING
C) WIDTH
D) ALIGN
6. Which of the following are two popular protocols that allow home computer users to connect
their computers to the internet as per hosts?
A) iii and iv
B) ii and iii
C) i and ii
D) ii and iii
A) i and ii
B) i and iii
C) ii and iii
D) i , ii and iii
10. Linking to another place in the same or another web page requires two A (Anchor) tags,
the first with the ……………… attribute and the second the ……………….attribute.
9. Elements from the HTML namespace are displayed as they would in …………………..
A) DHTML
B) XML
C) HTML
D) DXML
10. An ……………….. block can be to embed a CSS style sheet within an XML document.
A) <bk:Book>
B) <Element Type>
C) <HTML:STYLE>
D) <XML:STYLE>
Answers:
1. A) Extensible Markup Language
2. B) parsing rules
3. A) Unicode text
4. D) flexible information storage unit
5. D) Both b and c
6. A) Extensible Style sheet Language
7. A) case sensitive
8. A) double quotes
9. C) HTML
10.C) <HTML:STYLE>
10. ………………….. is a uniform naming scheme for locating resources on the web.
A) URI
B) HTTP
C) WEBNAME
D) RESOURCENAME
Answers:
1. C) Hyperlink
2. D) all of the above
3. D) Telnet
4. B) Head
5. C) HTTP
6. C) TCP/IP
7. D) Host name
8. B) SMTP
9. A) POP
10. A) URI
Answers:
1. A) link
2. D) 3
3. C) Gateway
4. C) User name and Password
5. C) both a & b
6. D) FTP
7. D) Institute of electrical and electronics engineers
8. A) Backbone
9. A) Packets
10. D) Tim Berners-Lee
. The primary goal
of the ………………….. protocol is to provide a private channel between communicating
application, which ensures privacy of data authentication of the partners, and
integrity.
A) SSL
B) ESP
C) TSL
D) PSL
2. The ……………. is used to provide integrity check,
authentication and encryption to IP datagram.
A) SSL
B) ESP
C) TSL
D) PSL