Top 13 Best Attributes of CSS PSEUDO SELECTORS 2022 (Hindi)

CSS PSEUDO SELECTORS

CSS PSEUDO SELECTORS होते हैं जिनके सामने एक कोलन होता है। आप शायद उनमें से कुछ से बहुत परिचित हैं। होवर की तरह: वे विभिन्न स्थितियों में बेहद उपयोगी हैं। उनमें से कुछ CSS3 हैं, कुछ CSS2… यह प्रत्येक विशेष पर निर्भर करता है। आईई के बाहर, उनके पास बहुत अच्छा ब्राउज़र समर्थन है। आईई भूमि में, यहां तक कि आईई 8, समर्थन बहुत बंजर है। हालाँकि, IE9 पूर्वावलोकन में उनके लिए पूर्ण समर्थन है। लिंक-संबंधित वाले काम करते हैं लेकिन बहुत कुछ नहीं। आइए उनमें से प्रत्येक पर एक संक्षिप्त नज़र डालें। चिंता न करें, इतने सारे नहीं हैं।

CSS NTH CHILD CODE

Design any Website with CSS nth child in Just 21 Minutes !! Professional Developers use this Trick😌

CSS NTH CHILD CODE:

<!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 nth child</title>
    <style>
        h1{
            background-color: greenyellow;
        }
        /* p{ */
            /* background-color: aquamarine; */

        /* } */
/* 
        p:nth-child(8){
                background-color: aquamarine;

        }

        p:nth-child(15){

            background-color: blueviolet;
            color: wheat;

        } */

        /* p:nth-child(odd){
            color: tomato;

        }

        p:nth-child(even){
            background-color: yellow;
        } */

        p:nth-child(3n+1)
        {
            background-color: springgreen;
        }

        p:nth-child(5n+0)
        {
            background-color: blue;
        }




    </style>
</head>
<body>
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
    <h1>What is Lorem Ipsum?
    </h1>
    
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <h1>What is Lorem Ipsum?
    </h1>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem consequatur sequi nobis. Cupiditate fuga reprehenderit pariatur! Hic adipisci tempora veniam.</p>    
</body>
</html>

Top 13 Attributes of CSS Pseudo Selectors

:link


:लिंक – शायद सबसे अधिक भ्रम पैदा करने वाला लिंक-संबंधित छद्म चयनकर्ता। क्या सभी लिंक नहीं हैं? ठीक है अगर उनके पास href विशेषता नहीं है। यह केवल उन लोगों का चयन करता है जो करते हैं, इस प्रकार अनिवार्य रूप से एक [href] जैसा ही है। किसी भी तत्व को जोड़ने की वास्तविकता बनने पर यह चयनकर्ता बहुत अधिक उपयोगी हो जाएगा।

:visited

उन लिंक्स का चयन करता है जो वर्तमान ब्राउज़र द्वारा पहले ही देखे जा चुके हैं।

Design any Professional Website in Just 20 Minutes (Hindi) || #Pseudo #Selectors in CSS 👍 Part #22

:hover

जब माउस कर्सर किसी लिंक पर लुढ़कता है, तो वह लिंक अपनी हॉवर स्थिति में होता है और यह उसे चुन लेगा।

:active

– सक्रिय होने के दौरान लिंक का चयन करता है (क्लिक किया जा रहा है या अन्यथा सक्रिय किया जा रहा है)। उदाहरण के लिए, बटन-शैली लिंक की “दबाया” स्थिति के लिए या सभी लिंक को अधिक बटन-जैसा महसूस कराने के लिए।

CSS PSEUDO SELECTORS CODE

<!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>Pseudo Selector</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <style>

        *{
            background-color: rgb(0, 89, 255);
            margin: 0%;
            padding: 0%;
            background-image: url();
            
        }
        
        .container{
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100vw;
            height: 100vh;
            text-shadow: 2px 3px 3px rgb(83, 25, 25);
            color: white;
            font-family: 'Righteous', cursive;
            text-align: center;
            
            
        }
        h1::before{
            content: "Before Pseudo Selector";
            background-color: yellow;
            color: black;
            display: block;
            margin: -92px;
            margin-bottom: 68px;
            width: 817px;
            border: 2px solid red;
            
            
        }
        h1::after{
            content: "After Pseudo Selector";
            background-color: yellow;
            color: black;
            display: block;
            margin: -92px;
            margin-top: 43px;
            width: 817px;
            border: 2px solid red;
            
            
            
            
        }
        
        
        </style>
</head>
<body>
    <div class="container">
        
        <!-- completely wrong -->
        <div>
            <!-- Before Selector  -->
            <h1>How Pseudo Selectors Works? </h1>
            
            <!-- after Selector -->
            
        </div>
        <!-- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae officia asperiores cum quae saepe, iste architecto tenetur debitis accusamus dolorum.</p> -->
    </div>
</body>
</html>

CSS Advance Selectors

Input और Link Related CSS Pseudo Selectors

:focus

– लिंक के लिए होवर शैलियों को परिभाषित करना बहुत अच्छा है, लेकिन यह उन लोगों की मदद नहीं करता है जिन्होंने लिंक तक पहुंचने के लिए कीबोर्ड नेविगेशन का उपयोग किया था। :फोकस उन लिंक्स का चयन करेगा जो कि कीबोर्ड का वर्तमान फोकस हैं। यह लिंक तक ही सीमित नहीं है, बल्कि इनपुट और टेक्स्ट एरिया पर भी इस्तेमाल किया जा सकता है (और वास्तव में इस्तेमाल किया जाना चाहिए)। कुछ लोग आपको : होवर शैली वाली किसी भी चीज़ के लिए : फ़ोकस शैली को परिभाषित करने के लिए कहेंगे।

:target

– लक्ष्य छद्म वर्ग का उपयोग आईडी के साथ संयोजन में किया जाता है, और जब वर्तमान यूआरएल में हैश टैग उस आईडी से मेल खाता है तो मेल खाता है। इसलिए यदि आप URL www.yoursite.com/#home पर हैं तो चयनकर्ता #home:target का मिलान होगा। यह बेहद शक्तिशाली हो सकता है। उदाहरण के लिए, आप एक टैब्ड क्षेत्र बना सकते हैं जहां टैब हैश टैग से लिंक होते हैं और फिर पैनल :target चयनकर्ताओं और (उदाहरण के लिए) शीर्ष पर जाने के लिए z-index का उपयोग करके मिलान करके “सक्रिय” होते हैं।

:enabled

– उन इनपुट का चयन करता है जो सक्षम की डिफ़ॉल्ट स्थिति में हैं और उपयोग के लिए तैयार हैं।

:disabled

– उन इनपुट का चयन करता है जिनमें अक्षम विशेषता है। बहुत सारे ब्राउज़र इनपुट को फीका कर देंगे, आप इस चयनकर्ता के साथ इसे नियंत्रित कर सकते हैं।

:checked

– – चेकबॉक्स का चयन करता है, इसके लिए प्रतीक्षा करें, चेक किया गया है।

:indeterminate

– उन रेडियो बटनों का चयन करता है जो न तो चुने गए हैं और न ही चुने हुए हैं (जैसे कि जब कोई पृष्ठ रेडियो बटन विकल्पों के साथ लोड होता है लेकिन कोई डिफ़ॉल्ट सेट नहीं होता है)।

:required

– आवश्यक विशेषता के साथ इनपुट का चयन करता है।

:optional

– उन इनपुट का चयन करता है जिनमें आवश्यक विशेषता नहीं है।

:read-only / :read-write –

रीड ओनली और डिसेबल्ड एट्रिब्यूट्स के संयोजन के आधार पर तत्वों का चयन करता है।

Leave a Reply

Your email address will not be published. Required fields are marked *