CBSE SOLUTIONS-2025-26
CLASS-8
CHAPTER-5 More on HTML 5 and CSS
A. Tick the correct answer:
1. Which of the following values cannot be assigned to the text align property?
a. Left b. Top c. Justify d. None of these
Answer: Top
2. The default value of font size property is ____________.
a. Small b. Large c. X-large d. Medium
Answer: Medium
3. The default value of text decoration property is _______.
a. Underline b. Overline c. None d. Line through
Answer: None
4. The default value of margin right property is:
a. 0px b. 1 px c. 2 px d. 3px
Answer: 0px
5. The default value of line height property is _______.
a. Normal b. Number c. Length d. None of these
Answer: Normal
B. Write T for true and F for false:
1. Text shadow specifies a list of shadow effects to be applied to the text.
Answer: T
2. Font property specifies all the font properties in one declaration.
Answer: T
3. <P> is an empty tag.
Answer: F
4. We use the <P> tag to display text in the form of a praragraph.
Answer: T
5. Border width specifies the width of the border.
Answer: T
C. Fill in the blanks:
1. __________ property specifies the decorations that are added to the text underlining, line through, etc.
Answer: Text decoration
2. ___________ property specifies the foreground colour of the text.
Answer: Color
3. __________ property specifies the line breaking rules.
Answer: Word break
4. ____________ specifies the horizontal alignment of text or block of text.
Answer: Text align
5. ______________ property specifies the style of the font.
Answer: Font style
D. Answer the following questions:
1. Explain any three text properties.
Answer:
1. Text-align: Specifies the horizontal alignment of text or block of text.
2. Line-height: Specifies the distance between two lines.
3. Text decoration: Specifies the decorations that are added to the text underlining, line through, etc.
2. What is the use of <P> and <hr> tags?
Answer:
<P>: <P> tag is used to display text in the form of a paragraph. It is container tag. It needs to be end with </P>.
<HR>: <HR> tag is used to insert a straight horizontal line. It is used as a separator between blocks of text. It is an empty tab.
3. Differentiate between the text shadow and text decoration properties.
Answer:
Text shadow: Specifies a list of shadow effects tobe applied to the text. Syntax: text-shadow: h-value v-shadow color
Text decoration: Specifies the decorations that are added to the text underline, line through, etc. Syntax: text-decoration:value
4. What values can be assigned to the text transform property?
Answer: Text transform: Controls the capitalization of text.
Syntax- text-decoration:value
Values:
None(default the text appears as it is),
Capitalize(the first character of each word in uppercase),
Uppercase(all characters are in uppercase),
Lowercase(all characters are in lowercase)
5. What is the use of font family and the font style property?
Answer:
Font family: Specifies a list of font names. Values: font name.
Example- font-family: arial
Font style property: Specifies the size of a font. Values: xx small, x-small, medium, large, x-large, xx-large, smaller.
Example- font-size: large, font-size: 17 px.
No comments:
Post a Comment