Computer Science, asked by sanikashinde14, 4 months ago

explain any three CSS properties for text using examples​

Answers

Answered by pratikthehero
5

Answer:

CSS text formatting include following properties:

.TEXT COLOR

Text-color property is used to set the color of the text.

2.TEXT ALIGNMENT

Text alignment property is used to set the horizontal alignment of the text.

The text can be set to left, right, centered and justified alignment.

In justified alignment, line is stretched such that left and right margins are straight.

3.TEXT DECORATION

Text decoration is used to add or remove decorations from the text.

Text decoration can be underline, overline, line-through or none.

Explanation:

Answered by aditya876881
3

Explanation:

GEEKSFORGEEKS

CSS | Text Formatting

CSS text formatting properties is used to format text and style text.

CSS text formatting include following properties:

1.Text-color

2.Text-alignment

3.Text-decoration

4.Text-transformation

5.Text-indentation

6.Letter spacing

7.Line height

8.Text-direction

9.Text-shadow

10.Word spacing

1.TEXT COLOR

Text-color property is used to set the color of the text.

Text-color can be set by using the name “red”, hex value “#ff0000” or by its RGB value“rgb(255, 0, 0).

OUTPUT:

2.TEXT ALIGNMENT

Text alignment property is used to set the horizontal alignment of the text.

The text can be set to left, right, centered and justified alignment.

In justified alignment, line is stretched such that left and right margins are straight.

:

3.TEXT DECORATION

Text decoration is used to add or remove decorations from the text.

Text decoration can be underline, overline, line-through or none.

4.TEXT TRANSFORMATION

Text transformation property is used to change the case of text, uppercase or lowercase.

Text transformation can be uppercase, lowercase or captitalise .

Capitalise is used to change the first letter of each word to uppercase.

5.TEXT INDENTATION

Text indentation property is used to indent the first line of the paragraph.

The size can be in px, cm, pt.

:

6.LETTER SPACING

This property is used to specify the space between the characters of the text.

The size can be given in px.

7.LINE HEIGHT

This property is used to set the space between the lines.

Similar questions