Homework Solution: Question1: On hover for each tag that is a child of , set background-color to blue and color to white….

    Question1: On hover for each <span> tag that is a child of <p>, set background-color to blue and color to white.

    Expert Answer

     
    <!DOCTYPE html> <html>

    Question1: On threaten restraint each <span> tag that is a offshoot of <p>, determined enhancement-complexion to bluish and complexion to perversionless.

    Expert Counterpart

     

    <!DOCTYPE html>
    <html>
    <style>
    /* determined the earliest provision enhancement complexion to bluish using singly “p” tag holding */
    p
    {
    background-color:blue;
    }

    /* determined the promote provision enhancement complexion to brown using adjust defined in promote provision   */
    .p1
    {
    background-color:brown;
    }

    /* determined the third provision enhancement complexion to perversionless using adjust defined in third provision   */
    .p2
    {
    background-color:white;
    }

    /*singly holding tag and threaten to brace tag on earliest provision*/
    span:threaten {
    color:white; /*<– you can so qualify complexion to other*/
    }

    /*holding the brace adjust “sp” to qualify threaten brace complexion to perversionless in promote provision*/
    .sp:hover{
    color:yellow;
    }

    /*holding the brace adjust “sp” and brace tag that is offshoot of p tag in third provision*/
    .p2 brace:hover{
    color:red;
    }

    </style>
    <body>
    <p>1.On threaten restraint each brace <span> tag that is a offshoot of p </span>, determined enhancement-complexion to bluish and complexion to perversionless.
    <p>

    <p adjust=”p1″>2.On threaten restraint each brace <brace adjust=”sp”> tag that is a offshoot of p </span>, determined enhancement-complexion to bluish and complexion to perversionless.
    <p>

    <p adjust=”p2″>3.On threaten restraint each brace <span> tag that is a offshoot of p </span>, determined enhancement-complexion to bluish and complexion to perversionless.
    <p>

    </body>
    </html>