Arrays JS Solutions
Arrays JS Solutions
Answer:
Explanation:
CSS stands for Cascading Style Sheets. It is used for describing the look
b. font
c. style
d. styles
Answer:
c. style
Explanation:
For example:
c. /* this is a comment */
Answer:
c. /* this is a comment */
Explanation:
b. color
c. background-color
d. bg-color
Answer:
c. background-color
Explanation:
b. #demo
c. *demo
d. $demo
Answer:
b. #demo
Explanation:
In CSS, an element is selected by its id using the # symbol followed by
the id name.
b) .my-class
c) my-class
d) <my-class>
Answer:
b) .my-class
Explanation:
To select an element with a specific class in CSS, you use a period (.)
followed by the class name. For example, .my-class will select all elements
b) font-color
c) text-color
d) text
Answer:
a) color
Explanation:
The color property in CSS is used to change the text color of an element.
You can specify colors using color names, hexadecimal values, RGB values,
or HSL values.
b. text-font
c. font-family
d. text-family
Answer:
c. font-family
Explanation:
b. font-size
c. text-style
d. size
Answer:
b. font-size
Explanation:
b. text-transform:uppercase
c. text-transform:lowercase
d. text-style:capitalize
a. text-transform:capitalize
Explanation:
The text-transform property with the capitalize value will make the first
b. color
c. background-image
d. image-background
Answer:
c. background-image
Explanation:
c) absolute
d) fixed
Answer:
a) static
Explanation:
b) padding
c) border
d) spacing
Answer:
b) padding
Explanation:
The padding property in CSS is used to add space between the content of an
element and its border. It affects the inner area of the element.
Answer:
Explanation:
b) border-radius
c) border-width
d) border-color
Answer:
b) border-radius
Explanation:
element's border. You can specify a single value for all corners or individual
Answer:
Explanation:
The display: none; property in CSS hides an element from the layout,
document flow.
b) a > div
c) div a
d) a div
Answer:
c) div a
Explanation:
To select all <a> elements within a <div> element, you use a space between
the two selectors. For example, div a will select all <a> elements inside
a <div>.
Answer:
Explanation:
The float property in CSS is used to allow text and other inline elements to
b) mouse-cursor
c) cursor-type
d) cursor
Answer:
d) cursor
Explanation:
The cursor property in CSS is used to change the style of the mouse cursor
Answer:
Explanation:
shadow property, followed by the horizontal offset, vertical offset, blur radius,
and color.
Answer:
Explanation:
b) text-align: center;
c) align-text: center;
d) text: center;
Answer:
b) text-align: center;
Explanation:
To change the text alignment to center for an element in CSS, you use
Answer:
Explanation:
The @media rule in CSS is used to apply styles based on different media
b) text-spacing
c) line-height
d) text-line-height
Answer:
c) line-height
Explanation:
The line-height property in CSS is used to control the spacing between lines
of text within an element.
Answer:
Explanation:
b) transition: 1s ease;
c) animate: smooth;
d) animate: 1s ease;
Answer:
b) transition: 1s ease;
Explanation:
b) position: absolute;
c) position: static;
d) position: relative;
Answer:
a) position: fixed;
Explanation:
when scrolling.
Answer:
Explanation:
b) width: 50px;
c) width: 50%;
d) width: 0.5;
Answer:
c) width: 50%;
Explanation:
To set the width of an element to be 50% of its parent's width in CSS, you
Explanation:
p {
color: red;
}
a) Blue
b) Red
c) Both
d) None
Answer:
c) Both
Explanation:
In CSS, if two rules have the same specificity, the last rule will be applied.
a) All p elements
Answer:
Explanation:
p {
font-style: bold;
}
b)
p {
font-weight: bold;
}
c)
p {
text-weight: bold;
}
Answer:
b)
p {
font-weight: bold;
}
Explanation:
The font-weight property in CSS is used to set the weight or thickness of the