×

Html & Html5

The World's best Software Development Study Portal

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:



Output:




2. Text Color

You can set the color of text. Let's understand this by the following example:



Output:




3. Border Color

You can set the color of borders. Let's understand this by the following example:



Output: