Q1. HTML is a
(a) package
(b) software
(c) markup language
(d) None of these
Answer: (c) HTML is a markup language which is used to
define the layout and attributes of WWW document.
Q2.
HTML tags are enclosed in
(a) curly brackets
(b) square brackets
(c) double quotes
(d) angular brackets
Answer: (d) HTML tags are enclosed within angular brackets
(< and >).
Q3.
Which of the following tag identifies the document as an HTML document?
(a) <HTML>
(b) <HEAD>
(c) <BODY>
(d) <P>
Answer: (a) tag identifies the document as an HTML
document.
Q4.
Container elements in HTML require
(a) starting tag
(b) ending tag
(c) starting and ending tags
(d) None of the above
Answer: (c) In HTML, container elements are required as both
starting and ending tags.
Q5.
HTML tags are
(a) in uppercase
(b) case sensitive
(c) in lowercase
(d) not case sensitive
Answer: (d) HTML tags are not case sensitive means we can
write tags either in uppercase or lowercase.
Q6.
Which type of tags used by HTML?
(a) tags only for image
(b) user defined tags
(c) tags only for linking
(d) fixed tags defined by the language
Answer: (d) HTML provides predefined and fixed tags.
Q7.
Which program do you need to write HTML code?
(a) Spreadsheet
(b) Access
(c) Notepad
(d) None of these
Answer: (c) From the given options, Notepad is useful program
to write HTML code.
Q8.
An example of HTML editor is
(a) Notepad
(b) Dreamweaver
(c) Microsoft Frontpage
(d) All of these
Answer: (d) HTML provides various text editors like Notepad,
Dreamweaver etc.
Q9.
To create an HTML page, you need
(a) text editor
(b) Web browser
(c) Both (a) and (b)
(d) None of these
Answer: (c) Because text editor is required to write HTML code
and Web browser is needed to display the page.
Q10.
Which of the following is the correct code of HTML page?
(a) <HTML><TITLE> Hello</TITLE></HTML>
Answer: (b) Because <TITLE>
tag must close inside the <HEAD> tag.
Q11.
Tags in html are
(a) Re-defined
(b) Pre-defined
(c) Self-defined
(d) None of these
Answer: (b) because all the elements used in html are already
defined..
Q12.
A Web page normally consists of
(a) head and body
(b) top and bottom
(c) body and font
(d) body and title
Answer: (a) From the given options, a Web page normally
consists of head and body.
Q13.
Which section is used for text and tags that are shown directly on your Web
pages?
(a) Meta
(b) Head
(c) Body
(d) Table
Answer: (c) Information in <BODY> tag is directly
displayed on Web pages.
Q14.
Where do you place the <TITLE> tag in a HTML?
(a) BODY
(b) HEAD
(c) TITLE
(d) FONT
Answer: (b) <TITLE> tag
is placed in the <HEAD> tag.
Q15.
Which attribute is not supported by a <BODY> tag?
(a) bgcolor
(b) size
(c) text
(d) link
Answer: (b) size is not an attribute of <BODY> tag.
Q16.
What will happen if the background image is smaller than the browser’s window?
(a) It will leave a blank space at the bottom of your page
(b) It will be repeated
(c) It will be stretched
(d) It will not be displayed
Answer: (b) When the background image is smaller than the
browser’s window then it will be shown in boxes in repeated pattern.
Q17.
Why should you specify a background color, if you are using an image for the
actual background of your page?
(a) So the text shows up better
(b) The background color will be shown until the image loads
(c) In case the image does not fit right
(d) None of the above
Answer: (b) We have to use background color because if in any
case image is not displayed then atleast background color will be shown on that
place.
Q18.
Which attribute of <BODY> tag specifies the color of visited links in a
document?
(a) vlink
(b) alink
(c) link
(d) None of these
Answer: (a) vlink attribute specifies the color of visited links
in a HTML document.
Q19.
Choose the correct HTML tag for the largest heading.
(a) <H2>
(b) <H4>
(c) <H6>
(d) <H1>
Answer:(d) <H1> tag provides the largest heading in HTML.
Q20.
Which of the following will give smallest size of the text?
(a) <H3>
(b) <H6>
(c) <H2>
(d) <H4>
Answer: (b) From the given options, <H6> tag displays
the smallest size of heading text.
Q21.
In a Web page, you can place
(a) 2 levels of headings
(b) 6 levels of headings
(c) 4 levels of headings
(d) 7 levels of headings
Answer: (b) Web page provides six levels of headings.
Q22.
The default alignment for paragraph is
(a) left
(b) right
(c) center
(d) justified
Answer: (a) The align attribute of <P> tag provides
various alignments like left, right, center and justify. But by default, its
alignment is left.
Q23.
Which of the following HTML container tags do you apply to text for formatting
the text as a paragraph?
(a)
<PARAGRAPH> ……. </PARAGRAPH>
(b) <PARA> ………. </PARA>
(c) <P> ……… </P>
(d) None of the above
Answer: (c) <P>…….</P> is a container tag, which
is used for formatting text.
Q24.
Which of the following is not a container element?
(a) P
(b) B
(c) OL
(d) HR
Answer: (d) HR is an empty tag because it has no closing tag.
Q25.
The style element holds the document for setting
(a) font, color and alignment
(b) font, color, alignment and border
(c) color, alignment and border
(d) None of the above
Answer: (b) Because they are used to give a better look
and feel to the Web documents.
Q26.
The tags used for specifying the style in HTML are
(i) <B> (ii) <I> (iii) <M> (iv) <L>
Choose the correct one
(a) (i) and (ii)
(b) (i) and (iii)
(c) (ii) and (iv)
(d) (i), (ii) and (iii)
Answer: (a) Because these two tags are text formatting/styling
tags.
Q27.
Which of the following tag is used to make a list that lists the items with
numbers?
(a) <DL>
(b) <UL>
(c) <OL>
(d) None of these
Answer: (c) <OL> is the ordered list that starts with a
number like 1, A, a, i and I etc.
Q28.
Which of the following is not HTML list?
(a) Ordered
(b) Unordered
(c) Definition
(d) Detailed
Answer: (d) Detailed list is not a type of HTML list.
Q29.
In an unordered list, it is necessary to enclose each item in
(a)
<LI> tag
(b) <UL> tag
(c) <I> tag
(d) <OL> tag
Answer: (a) Each item must be enclosed in <LI> tag
either in ordered list or unordered list.
Q30.
Which option do you have while making bulleted lists?
(a) Disc, circle, square
(b) Square, polygon
(c) Disc, circle, rectangle
(d) Disc, oval, polygon
Answer: (a) Bulleted list provides various values like disc,
circle and square.
Q31.
Which one of the following list type that will create a bulleted list?
(a) Unordered
(b) Ordered
(c) Definition
(d) All of these
Answer: (a) Unordered list provides various types of bullets
like square, disc and circle.
Q32.
Which of the following will produce a solid circle bullet when given as value
of type with <UL>?
(a)
Circle
(b) Disc
(c) Square
(d) Rectangle
Answer: (b) A solid circle bullet use the type disc.
Q33.
To create a square bulleted list, use
(a)
<UL type=”circle”>
(b) <OL type= “square”>
(c) <UL type=”square”>
(d) <UL start= “square”>
Answer: (c) Square bulleted list is the part of unordered
list.
Q34.
In an ordered list, each item cannot be preceded with
(a) Counting numbers
(b) Arabic numbers
(c) Roman numerals
(d) Bullets
Answer: (d) In unordered list, bullets are used while counting
numbers, arabic numbers and roman numbers are used in an ordered list.
Q35.
To create a numbered list with A, B, … use
(a)
<OL type=”A”>
(b) <OL start=”A”>
(c) <OL begin=”A”>
(d) <OL starts=“a”>
Answer: (a) The given list uses the uppercase letter for each
item so, the correct syntax is <OL type=“A”>
Q36.
To start a list with number 3, we should write
(a)
<OL start=”3″>
(b) <OL type=”3″>
(c) <OL value=”3″>
(d) All of these
Answer: (a) The correct syntax for start a list with number 3
is <OL start = “3”>.
Q37.
To start a list using circles, use
(a)
<UL type=”round”>
(b) <OL start=”l”>
(c) <UL =”circle”>
(d) <UL type =”circle”>
Answer: (d) Because circular list starts with unordered list
type circle.
Q38.
To start a numbered list with regular numerals, use
(a)
<OL type=”A”>
(b) <OL type=”r”>
(c) <OL type=”r”>
(d) <OL type=”u”>
Answer: (b) Because regular numbering is the natural numbers
starting from 1, 2, 3, … etc.
Q39.
If you want to make a list of items in the form of terms and their
descriptions, then you can create a …………. list.
(a) ordered
(b) unordered
(c) definition
(d) nested
Answer: (c) A definition list is a list of items, with
a description of each item.
Q40.
Web browsers display images in the following format
(a) XBM
(b) JPEG
(c) GIF
(d) All of these
Answer: (d) All of these
Q41.
Which tag is used to insert an image in Web page?
(a) <a>
(b) <table>
(c) <img>
(d) <p>
Answer: (c) <img> tag is used to insert inline
image in a Web page.
Q42.
The correct HTML code for inserting an image is
(a) <img href=”image.gif”>
(b) <img> image.gif</gif>
(c) <img src = “image.gif”>
(d) <image src = “image.gif” >
Answer: (c) <img src=”image.gif “>
Q43.
src attribute used with <img> tag stands for
(a) screen (b) screen resolution count
(c) source (d) structure
Answer: (c) source
Q44.
…………. attribute is used to specify the location of an image file.
(a) alt
(b) src
(c) align
(d) name
Answer: (b) src attribute is used to specify the
location of an image file.
Q45.
The alternate text of an image can be displayed by using attribute of the
<img> tag.
(a) src (b) alt
(c) align (d) None of these
Answer: (b) alt attribute of the <img> tag is
used to display the alternate text of an image.
Q46.
alt attribute allows
(a) addition of an alternate hyperlink
(b) addition of a border to image
(c) use of an alternative image in place of the specified image
(d) addition of alternative text about an image
Answer: (d) alt attribute allows addition of
alternative text about an image.
Q47.
The default alignment of images, that are inserted in Web page, is
(a) left
(b) right
(c) inline with text
(d) middle
Answer: (c) An image which is inserted in Web page by
default placed inline with text.
Q48.
Which is not a valid value in the align attribute of <img> tag?
(a) top
(b) center
(c) bottom
(d) right
Answer: (b) center is not a valid value in the align
attribute of <img> tag. To align in center, <center> tag can be
used.
Q49.
Why is it important to specify width and height attribute in <img> tag?
(a) To ensure that image is not copied
(b) The image will not render without these
(c) To stop the image from loading
(d) Helps the browser to load the Web page faster
Answer: (d) Helps the browser to load the Web page faster.
Q50.
When creating a Web document, which unit is used to express an image’s height
and width?
(a) Centimetres
(b) Pixels
(c) Dots per inch
(d) Inches
Answer: (b) Image’s height and width unit are expressed in
pixels or in per cent form.
Q51.
………… is the default color of a hyperlink.
(a) Red
(b) Blue
(c) Green
(d) Black
Answer: (b) Blue
Q52.
The tag used in HTML to link a Web page with other Web page is
(a) <a> (b) <h> (c) <u> (d) <l>
Answer: (a) <a> anchor tag is used to create links.
Q53.
Which tag tells, where a link starts?
(a) <1> (b) <start>
(c) <a> (d) None of these
Answer: (c) <a> tag specify that a link starts, in
which, href create a hyperlink.
Q54.
Which command should be use to link a page with HTML page?
(a) <a link = “page.htm” > </a>
(b) <a href = “page.htm”>page</a>
(c) <a connect = “page.htm”></a>
(d) <a attach = “page.htm”></a>
Answer: (b) <a href=”page.htm”>page</a>
Q55.
With which code you can make an image works as link?
(a) <a href = “URL”>Text</a>
(b) “<a href=”ABC.html”><img src =”graphic.gif”>Click
Here</a>
(c) <a ref=mailto:<img src = graphic.gif>Click Here</a>
(d) None of the above
Answer: (b) With <a href=”ABC.html”><img src=
“graphic.gif >Click Here</a> image works as link.
Q56.
To create a hyperlinked image
(a) the image tag should be within anchor tag
(b) the anchor tag should be within image tag
(c) the image tag should be before the anchor tag
(d) the image tag should be after the anchor tag
Answer: (a) The image tag should be within anchor tag to create
hyperlinked image.
Q57.
Is it possible to link within the current page?
(a) No
(b) Only in framesets
(c) Yes
(d) None of these
Answer: (c) Yes, it is possible to link within the current
page, which is called internal linking.
Q58.
…………….. attribute is used to set the color of a link while it is active.
(a) vlink
(b) alink
(c) Both
(a) and (b)
(d) None of these
Answer: (b) alink attribute is used to set the color of link
while it is active.
Q59.
The attribute which is used to send E-mails through a Website.
(a) tomail
(b) mailto
(c) Both
(a) and (b)
(d) None of these
Answer: (b) mailto attribute is used to send E-mails through a
Website.
Q60.
Choose the correct syntax to create an E-mail link.
(a) <a href = “abc@xyz.com”>
(b) <a href = “mailto:abc@xyz.com”>
(c) email = “abc@xyz.com”>
(d) <amail = “abc@xyz.com”>
Answer: (b) <a href = “mailto:abc@xyz.com”>
Q61.
To display (X+Y)2, correct HTML code is
(a) <sub>(X+Y)2</sub>
(b) X+Y< sup > 2 </sup >
(c) (X+Y)<sup>2</sup>
(d) <sup>(X +Y)2</sup>
Answer: (c) (X+Y) <sup>2</sup> code is correct
because superscript have to be placed in between <sup> and </sup>
tags.
Q62. Which of the following attribute of HTML tag.
(a) lang (b) select (c) translate (d) None of these
Answer: (a) <html lang="en"> for english language.
No comments:
Post a Comment