Prev Demo
CSS3
>
Not Selector
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <style> p { color: green; } :not(p) { color: none; } </style> <b>This is b element</b> <p>This is p element</p> <p>This is P element</p> <div> This is the div element. </div> <p><strong>Note:</strong> colour green is given to the 'p' element and colour 'none' is given to the other elements.</p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output