Cascading Style Sheets


JavaScript Functions Covered: <function1>() <function2>() <function3>() <function4>() <function5>() <var1> = <function6>() <var2> = <function7>() <function8>() <function9>() <eventListener>() <setInterval>() <setTimeout>() <addEventListener>() <map>() <filter>() <reduce>() <forEach>() <bind>() <call>() <apply>() <asyncFunction>() <await>() <promise>() <then>() <catch>() <finally>() <try>() <catch>() <throw>() <console.log>() <debugger>() <alert>() <confirm>() <prompt>() <eval>() <Object>() <Array>() <Date>() <JSON>() <localStorage>() <sessionStorage>() <window>() <document>() <location>() <navigator>() <history>() <encodeURIComponent>() <decodeURIComponent>()

1. Which property is used to change the background color of an element in CSS?

2. What does the z-index property in CSS control?

3. Which of the following is the correct CSS syntax to select all p elements inside a div?

4. Which CSS property is used to change the text color of an element?

5. What is the default value of the position property in CSS?

6. Which property is used to add space between the content of a box and its border in CSS?

7. How can you apply a CSS rule only when a user hovers over an element?

8. Which of the following units is relative to the font size of the parent element in CSS?

9. Which CSS property is used to set the space between characters of text?

10. How do you select all elements with a class of "highlight" in CSS?