Digital Learning

Wednesday, September 9, 2026

HTML-5 with CSS -CLASS-8-CH-5(2026-27):


A. Multiple Choice Questions
1. The default value of line-height property is:
(A) Normal
(B) Number
(C) Length
(D) Underline
Answer: (A) Normal
2. The default value of font-size property is:
(A) Small
(B) Medium
(C) Large
(D) X-large
Answer: (B) Medium
3. The properties used to set the margins in an HTML element:
(A) Margin
(B) Home
(C) Border
(D) Border color
Answer: (A) Margin
4. This tag is used to insert a straight horizontal line:
(A) </p>
(B) <h>
(C) <HR>
(D) None of these
Answer: (C) <HR>
5. This property controls the capitalisation of text:
(A) Text-decoration
(B) Text-shadow
(C) Word-break
(D) Text-transform
Answer: (D) Text-transform

B. Write TRUE or FALSE
1. The Margin properties facilitate the settings and appearance of individual characters in a line of text.
Answer: FALSE
2. The Font properties are used to set the margins for an HTML element.
Answer: FALSE
3. Font specifies all the font properties in one declaration.
Answer: TRUE
4. The <HR> tag is used as a separator between blocks of text.
Answer: TRUE
5. Word-break controls the capitalisation of text.
Answer: FALSE

C. Fill in the blanks with the words given below:
(Words: margin, line-height, properties, word-break, text-align)


1. All elements have various ________, for example, text, font, margin, etc.
Answer: properties
2. If you write the ________ property as margin: 15px 20px, then top and bottom margins are 15 px, right and left margins are 20px.
Answer: margin
3. ________ property specifies the line breaking rules.
Answer: word-break
4. ________ property specifies the horizontal alignment of text or block of text.
Answer: text-align
5. ________ property specifies the distance between two lines.
Answer: line-height

D. Answer these questions
1. Write the use of <p> and <hr> tags.
Answer:
<p> tag is used to define a paragraph of text.
<hr> tag is used to insert a horizontal line (separator) between sections or blocks of content.

2. What values can be assigned to the text-transform property?
Answer:
Possible values are:
  1. none
  2. capitalize
  3. uppercase
  4. lowercase
  5. full-width

3. Describe any three text properties.
Answer:
text-align: Controls the horizontal alignment of text (left, right, center, justify).
text-transform: Controls the capitalization of text (uppercase, lowercase, capitalize).
line-height: Sets the distance (spacing) between lines of text.

4. Write the use of font-family and the font-style property.
Answer:
font-family: Specifies the font (typeface) to be used for the text (e.g., Arial, Times New Roman, sans-serif).
font-style: Specifies the style of the font — mainly normal, italic, or oblique.

5. What is the purpose of the margin property? Explain with an example.
Answer:
The margin property is used to create space around an HTML element (outside its border). It controls the outer spacing on all four sides (top, right, bottom, left).
Example:
p {
  margin: 20px 15px;
}


No comments:

Post a Comment