-6

What is the difference between both below. I see no difference in appearance after toggling.

h1 + h2
h1 ~ h2

Can someone please explain simple ?

Adarsh Nanu
  • 2,133
  • 1
  • 13
  • 18

1 Answers1

0

+ is for adjacent siblings

enter image description here

~ is for general siblings

enter image description here

Source

Community
  • 1
  • 1
Amit Joki
  • 58,320
  • 7
  • 77
  • 95