Professional Documents
Culture Documents
HTML L2-1
HTML L2-1
inset
2> In regards to the CSS box model, where is the margin property located?
Border
Margin
FALSE
6>Relative size is
Filter: alpha(opacity=x)
style
11>The ________ property is used along with position property to create an effect of layers
z-index
:link
13>Which of the following is/are the possible values of CSS pseudo element property? i): first line ii):
last-line iii): before iv): after v): between
d) Content
15>p.outset{border-style: outset; } In the code snippet above,which part represents the property?
c) border-style
16>Which of the following is the correct HTML is for making a text area
b)textarea
17>Which of the following enables an extra set of restrictions for the content in an<iframe>
a) sandbox
18>Which of the following is a form event attribute that fires the moment that the element loses
focus ?
c) onblur
19>Which of the following is a mouse event attribute that fires when the mouse pointer moves over an
element ?
onmousemove
20>Which of the following is a mouse event attribute that fires when the mouse pointer moves out of
an element ?
c) onmouseout
21>Which types of the border style can looks as though it were embedded in the canvas?
inset
a) block-level elements
c) Border
24>The overflow property in CSS can take one of the following values. i)visible ii)hidden iii)scroll iv)non-
scroll v)auto
25>If an image is floated to the right,a following text flows around it,to the
a) right
26>Font size with ___________ allow users to resize the text(in the browser menu)
a) em
d) plus
28>Which of the following is the correct HTML is for inserting a background image ?
d)body background="bgimage.gif”;
c) list-style-type
a) Colon
32>The ___________ pseudo-element is used to add a special style to the first line of a para or
text
a) ::first-line
d) body{color: black;}
34>p{ width:220px; padding:10px; border:5px solid gray; margin:0px; } The total width of an element is
calculated like this:
b) Total element width = width + left padding + right padding + left border + right border + left
margin + right margin
35>Which of the following is the correct HTML is for making a text input field ?
d) input type="text"
35>You can add names to each frame window using which setting ?
a) name
36>Which of the following is a keyboad event attribute that fires when a user is pressing a key ?
b) onkeydown
37>Which of the following is a mouse event attribute that fires when the mouse pointer moves over an
element ?
onmousemove
38>Which of the following is a window event attribute that fires once a page has unloaded ?
Onunload
39> Block elements can be center-aligned by setting the left and right margins to ___________
a) 0
b) center
c) top
d) auto
Ans:d) auto
40> State True or False for CSS outlines properties. i)An outline does take up space ii)Outline do not
have to be rectangular. iii)Outline is always the same on all sides.</span></legend><div
class="qm_QUESTION_mc">
a) i-True,ii-True,iii-False
b) i-False,ii-False,iii-True
c) i-True,ii-False,iii-True
d) i-False,ii-True,iii-True
Ans:d) i-False,ii-True,iii-True
41> In regards to the CSS box model,where is the margin property located?
c) It could be inside or outside the box,depending on where you place it in your code
42> The_____________ property indicates whether a cell without any content should have a border
displayed.
a) blank-cells
b) empty-cells
c) nocontent-cells
d) noborder-cells
Ans:b) empty-cells
43>Elements after the floating element will flow around it. To avoid this, we use the ___________
property.
a) clear
b) reverse float
c) float
Ans: a) clear
44> Font size with ___________ allow users to resize the text(in the browser menu)
a) em
b) px
c) Both
Ans: a) em
c) readable code
46> Which of the following is the correct HTML is for inserting a background image ?
b) background img="bgimage.gif"
d) body background="bgimage.gif"
a) text-decoration:
b) text-transform:
c) text-spacing:
d) text-shadow:
Ans:a) text-decoration:
b) Unordered List
c) Definition List
49> In which position it will be calculated from the upper left corner of the parent layer?
a) position:absolute
b) position:relative
c) position:abs
d) position:rel
Ans:a) position:absolute
a) :nonvisited
b) :link
c) :unvisited
d) :fresh
Ans:b) :link
a) {body:color=black;}
b) {body;color:black;}
c) body:color=black;
d) body{color: black;}
a) outset
b) p
c) border-style
Ans: c) border-style
54> Which of the following is the correct HTML is for making a text input field ?
a) textfield;
b) input type="textfield"
c) inputtext;
d) input type="text"
55> You can add names to each frame window using which setting ?
a) name
b) src
c) ur
d) frameName
Ans:a) name
56> Which of the following is a form event attribute that fires the moment that the element loses focus
?
a) onlosefocus
b) onunfocus
c) onblur
d) ondeactivate
Ans: c) onblur
57> Which of the following is a keyboad event attribute that fires when a user is pressing a key ?--
careful when answering(Ambiquious question)
a) onkeydown
b) onkeypress
c) ondown
d) oneventdown
Ans: a) onkeydown
58> Which of the following is a keyboad event attribute that fires when a user is presses a key ?--
careful when answering(Ambiquious question)
a) onkeydown
b) onkeypress
c) onpress
d) oneventpress
Ans:b) onkeypress
background-color
Ans)min-height: 100px;
Ans) comma
llapse
causes white space to collapse
preserve
prevents white space from collapsing
preserve-breaks
causes white space to collapse but preserves new lines
discard
causes all white space to be discarded
trim-inner
causes leading and trailing blank lines to be discarded
s