CSS Selectors.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>CSS Selectors</title>
    <style>
        /* Id Selector */
       #redElement{
            colorred;
        }
        /* Class Selector */
        .bgBlue{
            coloryellow;
            background-colorblue;
        }
        /* Class Selector */
       .redElement{
            colorrgb(21118323);
        }
        /* Element Selector */
        p{
            colorblueviolet;
            border:2px solid red;
        }
        /* Grouping Selectors */
        footerspan{
            background-colorpink;


        }
    </style>
</head>
<body>
    <h3>CSS Selectors</h3>
    <p id="redElement">This is a simple pragraph to demonstrate css seletors</p>
    <p id="secondPahra" class="redElement bgBlue">This is a another simple pragraph to demonstrate css seletors</p>
    <div>

        <p>This is the yet another simple pragraph to inside div demonstrate css seletors</p>
        <span>This is span</span>
        <footer>This is footer</footer>
    </div>
  
</body>
</html>

Comments

Popular posts from this blog

automation fitness center project synopsis

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