colour html code example

Example 1: html colors

<!--
The value for the color property can be set in three main ways:

by color name, for example, red, green, blue
by hexadecimal number: from #000000 to #ffffff
by color code in the RGB palette: from rgb (0, 0, 0) to rgb(255, 255, 255)
-->

Example 2: color in html

<!-- Color in HTML by inline-css -->
<p style="color: red; background-color: blue;">
  This text is red and the background is blue
</p>

Example 3: html color codes

Use htmlcolorcodes.com for this

Example 4: html color codes

<!DOCTYPE html>
<!-- Code inside there--><html>
    <head>
        <meta charset="utf-8">
        <title>Lists Page</title>
        <style>
            body {
                background-color: black;
                text-shadow: 0px 0px 10px blue;
                font-family: Trebuchet MS;
                font-size: 20px;
            }
            h1 {
                color: white;
            }
            p {
                color:rgb(255, 230, 8);
                text-shadow: 0px 1px 30px blue;

            }
            h2 {
                color:white;
                font-size: 30px;
            }
            ul {
                list-style-type: circle;
                color:rgb(255, 0, 98);
                text-shadow: 0px 0px 5px blue;
            }
            ol {
                color:rgb(250, 105, 259);
                line-height: 30px;
            }
            h4 {
                color: rgb(0, 255, 55);
            }
    </style>
      </html>

Example 5: colors.html

<!-- Here are some easy ones -->
#ffffff #ff0000 #00ff00 #0000ff #ff