Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
div + p {
  background-color: yellow;
}
</style>
</head>
<body>
<h1>Demo of the element + element selector</h1>
<div>
  <h2>My name is Donald</h2>
  <p>I live in Duckburg.</p>
</div>
<p>My best friend is Mickey.</p>
<p>I will not be styled.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_sel_element_pluss by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:38:44 GMT -->
</html>