img
CSS - I

CSS is a vital technology for web styling. It controls the appearance and layout of HTML elements. Widely used in web development, CSS enables visually appealing designs and responsive layouts, with options for colors, fonts, spacing, and animations.

Last updated on:- 6th June 2023


1.
Which CSS property is used to set the color of text ?
color
text-color
font-color
text-style

The 'color' property is used to set the color of text in CSS.


2.
Which CSS property is used to set the font size of an element ?
font-size
text-size
size
font-style

The 'font-size' property is used to set the font size of an element in CSS.


3.
Which CSS property is used to set the background color of an element ?
background-color
color
background
background-style

The 'background-color' property is used to set the background color of an element in CSS.


4.
Which CSS property is used to set the font family of an element ?
font-family
font-style
text-family
text-font

The 'font-family' property is used to set the font family of an element in CSS.


5.
Which CSS property is used to set the text alignment of an element ?
text-align
text-style
text-decoration
text-color

The 'text-align' property is used to set the text alignment of an element in CSS.


6.
Which CSS property is used to set the margin around an element ?
margin
padding
border
outline

The 'margin' property is used to set the margin around an element in CSS.


7.
Which CSS property is used to set the padding inside an element ?
padding
margin
border
outline

The 'padding' property is used to set the padding inside an element in CSS.


8.
Which CSS property is used to set the width of an element ?
width
height
size
length

The 'width' property is used to set the width of an element in CSS.


9.
Which CSS property is used to set the height of an element ?
height
width
size
length

The 'height' property is used to set the height of an element in CSS.


10.
Which CSS property is used to set the border of an element ?
border
outline
margin
padding

The 'border' property is used to set the border of an element in CSS.


11.
Which CSS property is used to create rounded corners for an element ?
border-radius
border-style
border-width
border-color

The 'border-radius' property is used to create rounded corners for an element in CSS.


12.
Which CSS property is used to set the position of an element ?
position
top
left
bottom

The 'position' property is used to set the position of an element in CSS.


13.
Which CSS property is used to set the display behavior of an element ?
display
position
visibility
float

The 'display' property is used to set the display behavior of an element in CSS, such as block, inline, inline-block, etc.


14.
Which CSS property is used to control the order of floating elements ?
float
clear
order
position

The 'float' property is used to control the order of floating elements in CSS.


15.
Which CSS property is used to control the line height of text ?
line-height
text-height
font-height
text-line

The 'line-height' property is used to control the line height of text in CSS.


16.
Which CSS property is used to create an animation in an element ?
animation
transition
transform
keyframes

The 'animation' property is used to create an animation in an element in CSS. It allows you to specify the keyframes and duration of the animation.


17.
Which CSS property is used to apply a gradient background ?
background-image
background-color
background-gradient
background

The 'background-image' property is used to apply a gradient background in CSS.


18.
Which CSS property is used to control the visibility of an element ?
visibility
display
opacity
hidden

The 'visibility' property is used to control the visibility of an element in CSS.


19.
Which CSS property is used to create a box shadow effect ?
box-shadow
text-shadow
shadow
drop-shadow

The 'box-shadow' property is used to create a box shadow effect in CSS.


20.
Which CSS property is used to control the spacing between lines of text ?
line-spacing
text-spacing
letter-spacing
word-spacing

The 'line-spacing' property is not a valid CSS property. The correct property to control the spacing between lines of text is 'line-height'.


21.
Which CSS property is used to set the font weight of text ?
font-weight
text-weight
weight
font-style

The 'font-weight' property is used to set the font weight of text in CSS.


22.
Which CSS property is used to control the visibility of overflowing content ?
overflow
overflow-x
overflow-y
overflow-wrap

The 'overflow' property is used to control the visibility of overflowing content in CSS.


23.
Which CSS property is used to control the order of flex items ?
order
flex-direction
flex-wrap
flex-flow

The 'order' property is used to control the order of flex items in CSS.


24.
Which CSS property is used to create a gradient background ?
background-image
background-color
background-gradient
background

The 'background' property is used to create a gradient background in CSS using the 'linear-gradient()' function.


25.
Which CSS property is used to rotate an element ?
transform
rotate
rotation
transform-rotate

The 'transform' property is used to apply various transformations to an element in CSS, including rotation.


26.
Which CSS property is used to create a drop shadow effect ?
box-shadow
text-shadow
shadow
drop-shadow

The 'box-shadow' property is used to create a drop shadow effect in CSS.


27.
Which CSS property is used to set the space between individual letters ?
letter-spacing
word-spacing
line-spacing
text-spacing

The 'letter-spacing' property is used to set the space between individual letters in CSS.


28.
Which CSS property is used to control the wrapping behavior of text ?
white-space
text-wrap
word-wrap
text-overflow

The 'white-space' property is used to control the wrapping behavior of text in CSS.


29.
Which CSS property is used to set the order of columns in a multi-column layout ?
column-count
column-gap
column-rule
column-rule-color

The 'column-count' property is used to set the order of columns in a multi-column layout in CSS.


30.
Which CSS property is used to create a transition effect ?
transition
animation
transform
transition-effect

The 'transition' property is used to create a transition effect in CSS. It allows you to specify the property, duration, timing function, and delay of the transition.

img

"Embrace curiosity, unlock knowledge"

Copyright © 2023 - Some rights reserved

Made with

in INDIA