WS 101 Assignment
WS 101 Assignment
Subject: WS 101
Answer: - font-family: This property is used to specify the font family for the text. It can take multiple
values, such as the name of a specific font or a generic font family like "serif" or "sans-serif".
- font-size: This property is used to set the size of the font. It can be specified in pixels, ems, or
percentages.
- font-weight: This property is used to set the weight or thickness of the font. It can be set to values like
"normal", "bold", or a numeric value like400 or700. - font-style: This property is used to set the style of
the font, such as "normal", "italic", or "oblique".
- font-variant: This property is used to set the variant of the font, such as "normal" or "small-caps".
Answer: - color: This property is used to set the color of the text. It can take values like named colors
(e.g., "red", "blue"), hexadecimal values (e.g., "#FF0000"), or RGB values (e.g., "rgb(255,0,0)").
- background-color: This property is used to set the background color of an element. It can take the
same values as the color property.
- opacity: This property is used to set the transparency of an element. It takes a value between0
(completely transparent) and1 (completely opaque).
Answer: - text-align: This property is used to set the horizontal alignment of the text within an element.
It can take values like "left", "right", "center", or "justify".
- text-decoration: This property is used to add decorations to the text, such as underline, overline, or
line-through. It can take values like "none", "underline", "overline", or "line-through".
- text-transform: This property is used to transform the text to uppercase, lowercase, or capitalize the
first letter of each word. It can take values like "uppercase", "lowercase", or "capitalize".
- text-indent: This property is used to set the indentation of the first line of text within an element. It can
take values like pixels or percentages.
- text-overflow: This property is used to specify how overflowed text should be displayed when it
exceeds the size of its container. It can take values like "clip" (hides the overflow), "ellipsis" (displays an
ellipsis), or "fade" (fades out the overflow).