Horje

Example of HTML RGB and RGBA Colors

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1 style="background-color:rgb(255, 0, 0);">rgb(255, 0, 0)</h1>
<h1 style="background-color:rgb(0, 0, 255);">rgb(0, 0, 255)</h1>
<h1 style="background-color:rgb(60, 179, 113);">rgb(60, 179, 113)</h1>
<h1 style="background-color:rgb(238, 130, 238);">rgb(238, 130, 238)</h1>
<h1 style="background-color:rgb(255, 165, 0);">rgb(255, 165, 0)</h1>
<h1 style="background-color:rgb(106, 90, 205);">rgb(106, 90, 205)</h1>

</body>
</html>

Output should be:

Example of HTML RGB and RGBA Colors



Single Articles
Example of HTML RGB and RGBA ColorsHTML RGB and RGBA Colors
Example of HTML RGB and RGBA ColorsHTML RGB and RGBA Colors


Related Articles
What is HTML RGB and RGBA Colors HTML RGB and RGBA Colors
How to create HTML Shades of Gray Color HTML RGB and RGBA Colors
How to create HTML RGBA Color Values HTML RGB and RGBA Colors

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML RGB and RGBA Colors
Uploaded by:
Admin