Q.
If we want define style for an unique element, then which css selector will we use
?
A.Id
B.text
C.class
D.name
Answer : Id [Option : A]
Q. If we don't want to allow a floating div to the left side of an element, which css
property will we use ?
A.margin
B.clear
C.float
D.padding
Answer : clear [Option : B]
Q. Suppose we want to arragnge five nos. of DIVs so that DIV4 is placed above DIV1.
Now, which css property will we use to control the order of stack?
A.d-index
B.s-index
C.x-index
D.z-index
Answer : z-index [Option : D]
Q. Can we align a Block element by setting the left and right margins ?
A.Yes, we can
B.Not Possible
Answer : Not Possible [Option : B]
Q. If we want to wrap a block of text around an image, which css property will we use ?
A.wrap
B.push
C.float
D.align
Answer : float [Option : C]
Q. Can we define the text direction via css property ?
A.Yes, we can
B.No, we can't
Answer : Yes, we can [Option : A]
Q. Is it possible to declare font-weight, font-face & font-size by using ONLY ONE css
propery ?
A.Yes, it's possible
B.No, not possible
Answer : Yes, it's possible [Option : A]
Q. If we want to show an Arrow as cursor, then which value we will use ?
A.pointer
B.default
C.arrow
D.arr
Answer : default [Option : B]
Q. If we want to use a nice looking green dotted border around an image, which css property will we use?
A.border-color
B.border-decoration
C.border-style
D.border-line
Answer : border-style [Option : C]
Q. Which of the following properties will we use to display border around a cell without any
content ?
A.empty-cell
B.blank-cell
C.noncontent-cell
D.void-cell
Answer : empty-cell [Option : A]
Q. What should be the table width, so that the width of a table adjust to the current width of
the browser window?
A.640 pixels
B.100%
C.full-screen
D.1024 px
Answer : 100% [Option : B]
Q. 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.<style>
D.<css>
Answer : <link> [Option : B]
Q. Which attribute can be added to many HTML / XHTML elements to identify them as a
member of a specific group ?
A.Id
B.div
C.class
D.span
Answer : class [Option : C]
Q. When we write <img src="img.png">, what "img.png" inside double quote implies?
A.element
B.attribute
C.value
D.operator
Answer : value [Option : C]
Q. How can we write comment along with CSS code ?
A./* a comment */
B.// a comment //
C./ a comment /
D.<' a comment'>
Answer : /* a comment */ [Option : A]
Q. 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
Answer : padding [Option : C]
Q. Which CSS property is used to control the text size of an element ?
A.font-style
B.text-size
C.font-size
D.text-style
Answer : font-size [Option : C]
Q. The default value of "position" attribute is _________.
A.fixed
B.absolute
C.inherit
D.relative
Answer : relative [Option : D]
Q. How will you make all paragraph elements 'RED' in color ?
A.p.all {color: red;}
B.p.all {color: #990000;}
C.all.p {color: #998877;}
D.p {color: red;}
Answer : p {color: red;} [Option : D]
Q. By default Hyperlinks are displayed with an underline. How do you remove the underline
from all hyperlinks by using CSS code ?
A.a {text: no-underline;}
B.a {text-decoration:none;}
C.a {text-style: no-underline;}
D.a {text-decoration: no-underline;}
Answer : a {text-decoration:none;} [Option : B]