HTML color
Color property use to provide color to our text or we can also provide background color to document.
1. Background color
You can set the background color for HTML elements:
Let's understand this by the following example:
<p > This is Background color </p>
<h4 style="background-color:DodgerBlue" > It training classes </h4>
<p style="background-color:Tomato" > ITC... </p>
Output:
This is Background color
It training classes
ITC...
2. Text Color
You can set the color of text.
Let's understand this by the following example:
<h3 style="color:Tomato"> Hello world </h3>
Output:
3. Border Color
You can set the color of borders.
Let's understand this by the following example:
<h1 style="border: 2px solid Tomato"> Hello World </h1>
Output: