11
The CSS property defines the way- an image or video fits into container with established height and width is _______ .
A.
B.
C.
D.
Answer & Solution
The
object-fit property is used in CSS to control how the
content of a replaced element (like an image or video) should fit within its
container. Common values include cover, contain, and fill. Example: element { object-fit: cover; }.
12
Which type of CSS is used in the below code?
<p style = "border:10px solid blue;">
A.
B.
C.
D.
Answer & Solution
The
style
attribute within the <p> tag applies inline CSS directly to that
specific element. This is referred to as inline CSS, where styles are defined
within the HTML element itself rather than in an external or internal
stylesheet.
13
The CSS property specifies the origin of the background image ________ .
A.
B.
C.
D.
Answer & Solution
The
background-origin property specifies where the background image
should be positioned relative to the element. Possible values include border-box, padding-box, and content-box. Example: element { background-origin: border-box; }.
14
The CSS property used to set the maximum width of the element's content box is _______ .
A.
B.
C.
D.
Answer & Solution
The
max-width property in CSS is used to set the maximum
width of an element. This ensures that the element does not grow larger than
the specified value, even if the content inside it exceeds that width. Example:
element { max-width: 500px; }.
15
The CSS property used to set the maximum height of the element's content box is ________ .
A.
B.
C.
D.
Answer & Solution
The
max-height property in CSS is used to set the maximum
height of an element, ensuring that the element does not exceed this height
even if the content inside is larger. Example: element {max-height: 200px;}.
16
The CSS property used to set the minimum width of the element's
content box is .
A.
B.
C.
D.
Answer & Solution
The min-width property in CSS sets the minimum width that an element can
have. This prevents the element from becoming smaller than the specified width,
even if the content inside is smaller. Example: element
{ min-width: 300px; }.
17
The CSS property used to represent the overflowed text which is
not visible to the user is .
A.
B.
C.
D.
Answer & Solution
The text-overflow property in CSS
is used to control how text is handled when it overflows the containing box.
Common values are ellipsis (which shows
"..." when text overflows) and clip.
Example: element { text-overflow: ellipsis; }.
18
The CSS property which is used to define the set the difference between two lines of your content is _________ .
A.
B.
C.
D.
Answer & Solution
The line-height property in CSS
controls the amount of space between lines of text. It defines the distance
between the baselines of two consecutive lines of text. Example: element { line-height: 1.5; }.
19
The CSS property used to add stroke to the text is .
A.
B.
C.
D.
Answer & Solution
The
text-stroke property is used in CSS (though it's not widely
supported across all browsers) to add a stroke (outline) to the text. It can be
used with the color and width properties. Example: element { -webkit-text-stroke: 2px black; }.
20
The CSS property which is used to define the set the difference between two lines of your content is .
A.
B.
C.
D.
Answer & Solution
The
line-height property in CSS controls the amount of space
between lines of text. It defines the distance between the baselines of two
consecutive lines of text. Example: element
{ line-height: 1.5; }.
