IP unit 1 QB
UNIT I: HTML and common tags: Introduction, www, Internet, URL, Common tags: Text
formatting tags Line and Paragraph tags, Lists: ordered list Unordered List, definition List,
anchor tag , Absolute and relative path, Tables and its attributes, Image tag- alt attribute,
image mapping frames, forms , cascading style sheet, External style sheet, internal Style
sheet.
1.To create HTML page, you need _____
a) Web browser
b) text editor
c) Both [A] and [B]
d) None of the above
answer C
2.In HTML, tags that include both on and off tag are called
a) comment tag
b) document tag
c) container tag
d) None of the above
Answer : c
3. Which tag will you add to specify a font for your whole page?
a) <defaultfont>
b) <targetfont>
c) <basefont>
d) <font>
Answer : a
4. The main container for <TR>, <TD> and <TH> is _______
a) <DATA>
b) <GROUP>
c) <TABLE>
d) None of the above
Answer : c
5. When is the content of a table shown?
a) Before the border loads
b) After the table is loaded
c) In pieces as it loads
d) None of the above
Answer : b
6. The tag used for creating hypertext and hypermedia links is
a) <HR>
b) <BR>
c) <PRE>
d) <A>
ANSWER D
7.The correct sequence of HTML tags for starting a webpage is -
1. Head, Title, HTML, body
2. HTML, Body, Title, Head
3. HTML, Head, Title, Body
4. HTML, Head, Title, Body
Answer 4
8.How to create an unordered list (a list with the list items in bullets) in HTML?
• <ul>
• <ol>
• <li>
• <i>
Answer A
9.Which of the following tag is used to define options in a drop-down selection list?
1. <select>
2. <list>
3. <dropdown>
4. <option>
10.Which of the following is the correct way to send mail in HTML?
1. <a href = "mailto: xy@y">
2. <a href = "xy@y">
3. <mail xy@y</mail>
4. None of the above
11 Which of the following is the correct way to change the font face in HTML?
1. <font name = "Calibri"> ……… </font>
2. <font face = "Calibri"> ……… </font>
3. <font = "Calibri"> ……… </font>
4. None of the above
12.To set the color for table borders, use ______
a) bgcolor=#003300
b) bgimage=#003300
c) bordercolor=#003300
d) tablecolor=#003300
13. Which tag create a check box for a form in HTML?
a) <checkbox>
b) <select>
c) <input type-“checkbox”>
d) None of the above
ANSWER C
14. To separate single list, use
a) <ol> and </ol>
b) <ul> and </ul>
c) <li> and </li>
d) All of the above
15.The format of the <BASE> tag is
a) <HREF=”absolute URL”>
b) <BASE=”absolute URL”>
c) <BASE URL=>
d) <base href=”https://www.gkseries.com”>
16.The attribute used to create the actual section within the current HTML
document is
a) LINK
b) HERF
c) BASE
d) NAME
ANSWER D
A.
D.
C.
B. Answer : d
17. The attribute that defines the relationship between the current document and
the HREF’ed URL is
a) URL
b) REV
c) REL
d) PRE
Answer : b
18.Which tag is used to add columns to tables?
a) <td>
b) <tr>
c) <th>
d) <colspan>
Answer : a
19.A much better approach to establish the base URL is to use the ______
element.
a) HEAD
b) BODY
c) BASE
d) None of the above
20.Who is Known as the father of World Wide Web (WWW)?
A. Robert Cailliau
B. Tim Thompson
C. Charles Darwin
D. Tim Berners-Lee
Answer D
21. Tags and texts that are not directly displayed on the page are written in
_____ section.
A. web browser
B. title
C. empty
C.
A.
D.
D. head B.
Ans : D
22. Which of the following is the correct syntax for referring the external style sheet?
1. <style src = example.css>
2. <style src = "example.css" >
3. <stylesheet> example.css </stylesheet>
4. <link rel="stylesheet" type="text/css" href="example.css">
23 Which of the following CSS property is used to set the background image of an element?
1. background-attachment
2. background-image
3. background-color
4. None of the above
24.Which of the following is used to specify the subscript of text using CSS?
1. vertical-align: sub
2. vertical-align: super
3. vertical-align: subscript
4. None of the above
25. The CSS property used to make the rounded borders, or rounded corners around an element is -
1. border-collapse
2. border-radius
3. border-spacing
4. None of the above
26 Which type of CSS is used in the below code?
<p style = "border:2px solid red;">
1. Inline CSS
2. Internal CSS
3. External CSS
4. None of the above
27.Which element is used in the <HEAD> section on an HTML /
XHTMLpage, if we want to use an external style sheet file to decorate
the page ?
A.<src>
B.<link>
C.
B.
A.
D. D.
C.
C.<style>
D.<css>
Answer b
28. The default value of "position" attribute is _________.
a. static
b.fixed
c. inherit
d. absolute
Answer a static
29. Which css property you will use if you want to add some margin between a
DIV's border and its inner text ?
a. spacing
b. margin
c. padding
d. inner-margin
Ans .C
30.If we want define style for an unique element, then which css selector will
we use ?
Id
element
class
child
Ans.A id
31. The <HR> tag is used for
a) horizontal ruler
b) new line text
c) new pargraph
d) vertical ruler
Answer : a
32. How can you make a list that lits the items with bullets?
a) <dl>
b) <ul>
c) <ol>
d) None of the above
Answer : b
33. Which property tells how many rows a cell should span?
a) colspan=n
b) rowspan=n
c) Both (A) and (B)
d) None of the above
Answer : b
34. Which tag is used to add columns to tables?
a) <td>
b) <tr>
c) <th>
d) <colspan>
Answer : a
35. Which tag can add colspan=n?
a) <tr>
b) <td>
c) <table>
d) <th>
Answer : b
36. Generally, there are
a) 4 headers in most HTML page
b) 5 headers in most HTML page
c) 6 headers in most HTML page
d) 7 headers in most HTML page
Answer : c