 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS Child Selector
Use the child selector, if you want to select all elements immediate children of a specified element.
div > p
Example
You can try to run the following code to implement CSS Child Selector
<!DOCTYPE html> <html>    <head>       <style>          div > p {             background-color: orange;          }       </style>    </head>    <body>       <div>          <p>Para 1 in the div.</p>          <!-- This is not a Child -->          <span><p>Para 2 in the div.</p></span>       </div>       <p>Para 3 outside the div.</p>    </body> </html>  Output

Advertisements
 