CSS provides many properties to style and format text on your webpage. Here are the main text styling options:
Change the color of text using color:
color: #e74c3c;Align text with text-align:
text-align: center;Transform text case with text-transform:
text-transform: uppercase;Add lines or effects with text-decoration:
text-decoration: underline wavy #6fa8dc;Add shadow to text with text-shadow:
text-shadow: 2px 2px 6px #b6c8f9;Adjust spacing between letters and words:
letter-spacing: 4px; word-spacing: 16px;Indent the first line of text with text-indent:
text-indent: 40px;Control how text wraps with white-space:
white-space: nowrap;