0% found this document useful (0 votes)
7 views3 pages

Web Programming-Quiz 2

The document contains a quiz on CSS concepts and properties, including questions about inheritance, color transparency, text alignment, and element visibility. Each question is paired with its corresponding answer, providing a comprehensive overview of key CSS functionalities. The quiz serves as a learning tool for understanding essential CSS properties and their effects on web design.

Uploaded by

aryanikram5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Web Programming-Quiz 2

The document contains a quiz on CSS concepts and properties, including questions about inheritance, color transparency, text alignment, and element visibility. Each question is paired with its corresponding answer, providing a comprehensive overview of key CSS functionalities. The quiz serves as a learning tool for understanding essential CSS properties and their effects on web design.

Uploaded by

aryanikram5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Quiz # 2

CSS Concept /
Description
Property
Does this force the property to copy from the parent, even if it's not normally
1.
inherited?
2. Which function allows transparency in color?
3. Controls space between lines,
4. Which value converts text to all small caps but keeps capital letters capital?
5. Will scrollbars always appear even if not needed?
6. What does inside do to bullets compared to outside?
7. Sets the text color of an element.
8. Sets the background color of an element.
9. Defines the size of the text.
10. Specifies the font style to be applied.
11. Aligns text (left, center, right, justify).
12. Adds space outside the border of an element.
13. Adds space inside the border of an element.
14. Sets the style, width, and color of the element’s border.
15. Specifies what happens if content overflows an element box.
16. Controls whether the element is visible or hidden but still takes space.
17. Sets the transparency level of an element.
18. Applies shadow effect around an element box.
19. Adds or removes decoration (e.g., underline, line-through) to text.
20. Defines the mouse cursor type when hovering.
21. Pseudo-class that applies styles when user hovers over an element.
22. Overrides other CSS declarations.
23. It inherits the property from its parent element.
24. Hides the element but reserves space on the page.
25. Hides the element and removes it from the layout.
Solution:
CSS
Concept / Description
Property
Does this force the property to copy from the parent, even if it's not normally
1. inherit
inherited?
2. rgba() Which function allows transparency in color?
3. line-height Controls space between lines, but does it include the font-size?
4. text-
Which value converts text to all small caps but keeps capital letters capital?
transform
5. overflow:
Will scrollbars always appear even if not needed?
scroll
6. list-style-
What does inside do to bullets compared to outside?
position
7. color Sets the text color of an element.
8. background-
Sets the background color of an element.
color
9. font-size Defines the size of the text.
10. font-family Specifies the font style to be applied.
11. text-align Aligns text (left, center, right, justify).
12. margin Adds space outside the border of an element.
13. padding Adds space inside the border of an element.
14. border Sets the style, width, and color of the element’s border.
15. overflow Specifies what happens if content overflows an element box.
16. visibility Controls whether the element is visible or hidden, but still takes space.
17. opacity Sets the transparency level of an element.
18. box-shadow Applies shadow effect around an element box.
19. text-
Adds or removes decoration (e.g., underline, line-through) to text.
decoration
20. transition Creates smooth animation between state changes.
21. cursor Defines the mouse cursor type when hovering.
22. :hover Pseudo-class that applies styles when user hovers over an element.
23. important! Overrides other CSS declarations.
24. inherit Inherits the property from its parent element.
CSS
Concept / Description
Property
25. visibility:
Hides the element but reserves space on the page.
hidden;
26. display:
Hides the element and removes it from the layout.
none;

You might also like