Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> p { color: #666; } :not(p) { color: #8ebf42; } </style> </head> <body> <h2>:not() selector example</h2> <p>Lorem Ipsum is simply dummy text</p> <p>Lorem Ipsum is simply dummy text</p> <div>Lorem Ipsum is simply dummy text</div> <a href="https://www.w3docs.com" target="_blank">Link to W3docs</a> </body> </html>