HEADER ADS 728X90

Types Of CSS Selectors and Explain How to use it in practical | CSS Tutorial | BY Codeprime

Abdullah sheikh,css,html,php,javascript,tutorial,code prime,code prime youtube chanel,css tutorial for beginners,css tutorial for beginners in hindi,online,online education bd,online tutorials,website,css selectors,css selectors tutorial,css selector explain,css crash course 2022,learn with code prime,web design,web development full course,class,identifier,universel,comparison,tag selector,What are the 5 CSS selector types?,What are CSS selectors?,types of csscodeprime, coding tutorial, how to learn coding easy way to learn coding

Hi dear welcome to "CodePrime" Blog . In this post we are going to learn Types Of CSS Selectors and Explain how to use. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE and pest it then open the index.html file with your browser.

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 selector BY CODE PRIME</title>
</head>
<body>


   <!-- CLASS SELECTOR -->
    <div class="btn">CodePrime</div>
    <!-- IDENTYFIRE selector -->
    <div id="codeprime">Bangladesh</div>

<!-- COMPASION SELECTOR  -->
    <div class="box">
        <div class="btn">
            <div id="codeprime">Bangladesh</div>
        </div>
   
    </div>
   
</body>
</html>

CSS

 /* UNIVERSEL SELECTOR  */
    *{
        font-family: Arial, Helvetica, sans-serif;
    }

    .box .btn > #codeprime:hover{
        background: red;
    }

    #codeprime{
        padding: 10px 20px ;
        background: #fff;
        color: #000;
        font-size: 2rem;
        margin: 10px 0;
    }


    .btn{
        padding: 10px 20px ;
        background: #fff;
        color: #000;
        font-size: 2rem;
    }

    /* TAG SELECTOR  */
    body{
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        background: linear-gradient(45deg,blue,white);
    }

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram