CSS MCQ
CSS MCQ
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
Q. Is it possible to declare font-weight, font-face & font-size by using ONLY ONE css
propery ?
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]
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]
B.// a comment //
C./ a comment /
D.<' a comment'>
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]
B.text-size
C.font-size
D.text-style
Answer : font-size [Option : C]
B.absolute
C.inherit
D.relative
Answer : relative [Option : D]
B.a {text-decoration:none;}