HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> p{ color: black; } :not(p){ color: green; } </style> </head> <body> <h1>CSS :not Selector</h1> <h2>Heading 2</h2> <p>Everything except p is selected</p> <p>List of fruits in my bucket</p> <ul> <li>Apple</li> <li>Banana</li> <li>Cherry</li> </ul> </body> </html>
OUTPUT
×

Save as Private