CSS :not Selector

HTML Code

<!DOCTYPE html>
<html>
<head>
<style>
p {
color: #000000;
}

:not(p) {
color: #ff0000;
}
</style>
</head>
<body>

<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=”http://rinectar.com/” target=”_blank”>Link to Rinectar!</a>

</body>
</html>

HTML View

This is a heading

This is a paragraph.

This is another paragraph.

This is some text in a div element.
Link to Rinectar!

If you want to join my online or offline graphic designing course than just call me - 9334029817

Related Posts

Leave a Reply

Open chat