0% found this document useful (0 votes)
12 views2 pages

WS 101 Assignment

The document contains the answers to three questions about CSS properties. For the first question, it discusses the font-family, font-size, font-weight, and font-style properties. For the second question, it discusses the color, background-color, and opacity properties. For the third question, it discusses the text-align, text-decoration, text-transform, text-indent, and text-overflow properties. Each property is defined and examples of possible values are provided.

Uploaded by

ET HE L'z
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

WS 101 Assignment

The document contains the answers to three questions about CSS properties. For the first question, it discusses the font-family, font-size, font-weight, and font-style properties. For the second question, it discusses the color, background-color, and opacity properties. For the third question, it discusses the text-align, text-decoration, text-transform, text-indent, and text-overflow properties. Each property is defined and examples of possible values are provided.

Uploaded by

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

Name: SULIETA, JUVY MARIE R.

Course/Year& Section: BSIT-3B

Instructor: Sir Mark Escalante

Subject: WS 101

1. What are the different font properties in CSS? Discuss each.

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".

2. What are the different color properties in CSS? Discuss each.

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).

3. What are the different text properties in CSS? Discuss each.

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).

You might also like