41
The CSS property used to specify whether the text is written in the horizontal or vertical direction?
A.
B.
C.
D.
Answer & Solution
The
writing-mode property specifies the direction in which the
text is displayed. It can be used to display text vertically. Example: element { writing-mode: vertical-lr; }.
42
Which of the following CSS property is used to control the space between every letter inside an element?
A.
B.
C.
D.
Answer & Solution
The
letter-spacing property in CSS controls the space between
characters (letters) in the text of an element. Example: element { letter-spacing: 2px; }.
43
Which of the following is used to make the text superscript using CSS?
A.
B.
C.
D.
Answer & Solution
To
make text superscript in CSS, you use vertical-align:
superscript;.
This moves the text above the baseline, making it appear smaller and higher.
44
Which of the following CSS property is used to specify the transparency of an element?
A.
B.
C.
D.
Answer & Solution
The
opacity property in CSS controls the transparency of an
element. Values range from 0 (fully transparent) to 1
(fully opaque). Example: element
{ opacity: 0.5; }.
45
Which of the following property is used as the shorthand property of margin properties?
A.
B.
C.
D.
Answer & Solution
The
margin
property is the shorthand for setting all four margin values (top, right,
bottom, left) in a single declaration. Example: element { margin: 10px; }.
46
Which type of values are not allowed in padding property?
A.
B.
C.
D.
Answer & Solution
The
padding property does not accept negative values.
Padding defines the space around an element's content, and negative values
would create undesired or incorrect layout behavior.
47
Which of the following CSS property is used for setting the thickness of the font?
A.
B.
C.
D.
Answer & Solution
The
font-weight property in CSS is used to define the thickness
of the font. Valid values include normal, bold, lighter, and numeric values. However, thick is
not a valid value. The correct value would be bold
for thicker text.
48
Which of the following property is used as the shorthand property for changing all padding properties?
A.
B.
C.
D.
Answer & Solution
The
padding property is the shorthand for setting all four
padding values (top, right, bottom, left) at once. Example: element { padding: 10px; }.
49
Which of the following is the correct syntax to display the hyperlinks without any underline?
A.
B.
C.
D.
Answer & Solution
The
text-decoration property controls the appearance of text
decorations like underlines. Setting text-decoration:
none;
removes the underline from links (<a> elements).
50
Which of the following is the correct syntax to create the background-color of all paragraph elements to red?
A.
B.
C.
D.
Answer & Solution
The
correct CSS syntax to change the background color of all <p> (paragraph) elements is p { background-color: red; }. This applies the style to all paragraphs.
