DEV Community

Mubasshir Ahmed
Mubasshir Ahmed

Posted on

Child Selector ( > )

this element is used to select a specific child element from a specific element.

   ```html
    <div class="abc">
       <section>.....</section>
       <p>.....</p>
       <button>.....</button>
   </div> 
  ```
Enter fullscreen mode Exit fullscreen mode

here , to select all from our "div" class name "abc" ,we use child selector .

   ```CSS
   .abc > p {
         ........
         ........
     }
    ```
Enter fullscreen mode Exit fullscreen mode

Top comments (0)