:not(article *) {
color: orange;
}
<article>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<div>This is some text in a div element.</div>
<a href="https://www.w3schools.com" target="_blank">Link to W3Schools!</a>
</article>
<h2>test</h2>
I want to make the color of the elements that are not inside the article element orange, but it doesn’t work.
This is my current output:
New contributor
Doğuhan Tuna is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.