Page 125 - CodePilot V5.0 C6
P. 125
LEARNING LOGS
A. Tick ( ) the correct option.
1. Which component of the CSS syntax is a combination of a property and its value?
(i) Declaration (ii) Properties
(iii) Selector (iv) Declaration Block
2. Identify the correct result of the given CSS code snippet:
H1, H2, P { COLOR: GREEN; }
(i) Only <H1> text turns green
(ii) Only <H2> text turns green
(iii) <H1>, <H2> and <P> texts turn green
(iv) Only <P> text turns green
3. Pick the background property that sets an image as the background of an element.
(i) BACKGROUND-COLOR (ii) BACKGROUND-IMAGE
(iii) BACKGROUND-REPEAT (iv) BACKGROUND-SIZE
4. Select the margin property that sets the space on the top side of an element.
(i) MARGIN-RIGHT (ii) MARGIN-BOTTOM
(iii) MARGIN-TOP (iv) MARGIN-LEFT
5. Choose the CSS property that adds a shadow effect to text.
(i) TEXT-SHADOW (ii) TEXT-DECORATION
(iii) TEXT-ALIGN (iv) TEXT-TRANSFORM
B. Write T for true and F for false.
1. CSS improves performance by separating design, reducing code and speeding load times.
2. In CSS, a declaration block is a set of one or more declarations enclosed in curly braces.
3. Internal CSS is applied by writing styles inside a separate external file with a .css extension.
4. The TEXT-ALIGN property in CSS is used to change the font size of the text.
5. The MARGIN property in CSS can be used to set the margin for all four sides of an element.
123
CSS3–Styling Basics

