[Type]0
[Marks]1
[Negative Marks]0
Q.1) What does CSS stand for?
[a] Cascading Style Sheets*
[b] Creative Style Sheets
[c] Computer Style Sheets
[d] Colorful Style Sheets
Q.2) Which property is used to change the text color in CSS?
[a] color*
[b] background-color
[c] font-color
[d] text-color
Q.3) How can you include external CSS stylesheets in an HTML
document?
[a] <link rel="stylesheet" type="text/css"
href="styles.css">*
[b] <style src="styles.css">
[c] <css src="styles.css">
[d] <stylesheet src="styles.css">
Q.4) Which CSS property is used to control the spacing between
lines of text?
[a] line-height*
[b] letter-spacing
[c] text-spacing
[d] word-spacing
Q.5) Which CSS property is used to add shadows to elements?
[a] box-shadow*
[b] shadow-color
[c] element-shadow
[d] text-shadow
Q.6) How can you select an element with the class name "example" in
CSS?
[a] .example *
[b] #example
[c] example()
[d] $example
Q.7) What is the correct CSS syntax to apply styles to an ID
selector?
[a] #myElement { }
[b] .myElement { }
[c] myElement { }
[d] *myElement { }
[e] None of the above*
Q.8) Which CSS property is used to control the transparency of an
element?
[a] opacity *
[b] visibility
[c] display
[d] transparent
Q.9) How can you group multiple CSS selectors together to apply the
same styles to all of them?
[a] Separate them with commas *
[b] Separate them with semicolons
[c] Separate them with colons
[d] Separate them with periods
Q.10) Which CSS property is used to control the size of an
element's font?
[a] font-size *
[b] text-size
[c] font-style
[d] text-font
Q.11) Which CSS property is used to set the background color of an
element?
[a] background-color*
[b] color
[c] background
[d] bgcolor
Q.12) How can you center an element horizontally in CSS?
[a] margin-left: auto; margin-right: auto; *
[b] text-align: center;
[c] align: center;
[d] position: absolute; left: 50%; transform: translateX(-
50%);
Q.13) Which CSS property is used to add a border to an element?
[a] Border*
[b] outline
[c] border-style
[d] border-color
Q.14) What does the CSS box-sizing property do?
[a] It determines the size of the content area of an
element.
[b] It adjusts the padding and border sizes of an element.
[c] It includes or excludes the element's padding and border
from its total width and height.*
[d] It sets the position of the element within its
containing element.
Q.15) Which CSS property is used to control the height of an
element?
[a] Height*
[b] size
[c] width
[d] dimension
Q.16) How can you select all the <p> elements inside a <div>
element in CSS?
[a] div p *
[b] p div
[c] div > p
[d] p + div
Q.17) Which CSS property is used to add spacing between the border
and content of an element?
[a] padding *
[b] margin
[c] space
[d] border-spacing
Q.18) What is the correct CSS syntax to apply styles to a class
selector named "example"?
[a] .example { } *
[b] example { }
[c] #example { }
[d] .example() { }
Q.19) Which CSS property is used to control the position of an
element?
[a] position *
[b] float
[c] display
[d] order
Q.20) How can you select the last child element of a parent element
in CSS?
[a] :last-child *
[b] .last-child
[c] #last-child
[d] .child:last
Q.21) Which CSS property is used to control the vertical alignment
of text within an element?
[a] vertical-align *
[b] text-align
[c] line-height
[d] align-items
Q.22) How can you apply a background image to an element in CSS?
[a] background-image *
[b] image-source
[c] background-url
[d] image-background
Q.23) Which CSS property is used to control the spacing between
individual letters in text?
[a] letter-spacing *
[b] word-spacing
[c] line-spacing
[d] text-spacing
Q.24) What is the correct CSS syntax to apply styles to an element
with both class "class1" and "class2"?
[a] .class1.class2 *
[b] .class1, .class2
[c] #class1.class2
[d] .class1 > .class2
Q.25) How can you select the first child element of a parent
element in CSS?
[a] :first-child *
[b] .first-child
[c] #first-child
[d] .child:first
Q.26) Which CSS property is used to control the appearance of list
item markers?
[a] list-style *
[b] marker-style
[c] bullet-style
[d] list-marker
Q.27) What is the correct CSS syntax to apply styles to an element
with the ID "myElement"?
[a] #myElement { } *
[b] .myElement { }
[c] myElement { }
[d] *myElement { }
[e] None of the above
Q.28) How can you make an element's text bold in CSS?
[a] font-weight: bold; *
[b] text-style: bold;
[c] font-style: bold;
[d] text-weight: bold;
Q.29) Which CSS property is used to create rounded corners on an
element?
[a] border-radius *
[b] border-style
[c] border-width
[d] border-corner
Q.30) How can you select all the elements of a specific type in
CSS?
[a] element-type *
[b] .element-type
[c] #element-type
[d] element