CSS MCQ
CSS MCQ
CSS MCQS
1). The full form of CSS is:
a) Cascading Style Sheets
b) Coloured Special Sheets
c) Color and Style Sheets
d) None of the above
2). How can we change the background color of an element?
a) background-color
b) color
c) Both A and B
d) None of the above
6). What type of CSS is generally recommended for designing large web pages?
a) Inline
b) Internal
c) External
d) None of the above
7). Which HTML tag is used to declare internal CSS?
a) <style>
b) <link>
BY ELRayeK
c) <script>
d) None of the above
8). How can we select an element with a specific ID in CSS?
a) #
b) .
c) ^
d) None of the above
9). How can we select an element with a specific Class in CSS?
a) #
b) .
c) ^
d) None of the above
10). How can we write comments in CSS?
a) /* */
b) //
c) #
d) All of the above
11). In the below code snippet, in what order will the margins be added?
p {
margin: 25px 50px 75px 100px;
}
a) Top, Right, Bottom, Left
b) Top, Left, Bottom, Right
c) Top, Bottom, Right, Left
d) Right, Left, Top, Bottom
12). Can negative values be allowed in padding property?
a) Yes
b) No
c) Depends on property
d) None of the above
13). The CSS property used to specify the transparency of an element is?
a) opacity
b) visibility
c) filter
d) None of the above
14). How can we specify the spacing between each letter in a text in CSS?
a) alpha-spacing
b) letter-spacing
c) character-spacing
d) None of the above
15). What is the correct syntax for referring an external CSS?
BY ELRayeK
a) 310px
b) 350px
c) 360px
d) None of the above
31). Which of the following can be achieved with CSS lists?
a) Set different list item markers for ordered lists
b) Set different list item markers for unordered lists
c) Set an image as the list item marker
d) All of the above
32). Which of the following CSS property specifies the type of list item marker?
a) list
b) list-style-type
c) ul
d) ol
33). What value should be passed to the width parameter if we want an element, say a
table, to span the entire width of the screen?
a) 100%
b) 50%
c) 0%
d) None of the above
34). Which of the following properties is used to align text in CSS?
a) text-align
b) text-alignment
c) text
d) text-position
35). Which of the following is the correct approach to make a table responsive?
a) overflow-x: auto
b) overflow-x: none
c) Both A and B
d) None of the above
36). Which of the following CSS properties specifies the stack order of elements?
a) z-index
b) overlap
c) No such specific property is present
d) None of the above
37). Which of the following CSS property creates a clipping region and specifies the
visible area of the element?
a) visibility
b) clip-path
c) Both A and B
BY ELRayeK