Colours In CSS(tut18).html

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Colours In CSS</title>
    <style>
        #firstPara{
            color:red;  /* color by name */
        }

        #secondPara{
            /* color by rgb value */
            color:rgb(21410048);
        }

        #thirdPara{
            /* color by hex value */
            color:#c52fc5;
            background-color#ff4532;

        }
    </style>
</head>
<body>
    <h2>This is my first box</h2>
    <p id="firstPara">This is a paragraph from first box</p>
    <h2>This is my first box</h2>
    <p id="secondPara">This is a paragraph from second box</p>
    <h2>This is my first box</h2>
    <p id="thirdPara">This is a paragraph from Third box</p>
</body>
</html>

Comments

Popular posts from this blog

automation fitness center project synopsis

CSS : Position, absolute, relative ,fixed and sticky(tut25).html