1-Text Color:
The colorproperty is used to set the color of the text. The color is
specified by:
•a color name - like "red"
•a HEX value - like "#ff0000"
•an RGB value - like "rgb(255,0,0)"
Look at CSS Color Values for a complete list of possible color
values.
The default text color for a page is defined in the body selector.
3.
<html> <head>
<style>
body {
background-color: lightgrey;
color: blue;
}
h1 {
background-color: #55AB90;
color: white;
}
div {
background-color: RGBA(0,255,89,0.5);
color: white;
}
</style></head>
<body>
<h1>This is a Heading</h1>
<p>This page has a grey background color and a blue text.</p>
<div>This is a div.</div>
</body> </html>
4.
2-Text Alignment:
Thetext-align property is used to set the horizontal alignment of a
text.
A text can be left or right aligned, centered, or justified.
3- Text Decoration:
Thetext-decoration-line property is used to add a decoration line to text.
text-decoration-line
text-decoration-color
text-decoration-style
text-decoration-thickness
text-decoration