Thursday 27 May 2021

selector

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>selector</title>
</head>
<style>
h1{
    border2px solid black;
    background-colorblack;
    colorwhite;
    font-weightbold;
}
div p{
    /* color: red; */
}
p{
    /* color:yellow */
}
div li p{
    /* color: blue; */
}
div>p{
    /* color: green; */
}
li<p{
    colororange;
}


</style>
<body>
    <h1>This is head line</h1>
    <div class="container">
        <ul>
            <li>
                <p>This is inside li para</p>
                <p>This is inside li para</p>
            </li>
        </ul>
<div class="para"><p>This is frist para</p></div>
<div class="para"><p>This is second para</p></div>
<div class="para"><p>This is third para</p></div>

    </div>
    <p>This is outer para</p>
</body>
</html>

No comments:

Python if / else

 Python if / else a1 = int ( input (" Enter the number: \n ")) a2 = int ( input (" Enter the number: \n ")) a3 = int ( i...