d
Amit DhamuSoftware Engineer
 

CSS Greater Than Sign

1 minute read 00000 views

CSS

body > div {
  background: #fe0000;
}

HTML

<body>
  <!-- This div will have a red background because the div is a direct child of body -->
  <div>
    <!-- This div will have no styling because it is NOT a direct child of body -->
    <div></div>
  </div>
</body>