-6

What's difference between following the two selectors?

* {
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
}
Kunj
  • 1,890
  • 2
  • 24
  • 32
Junhee Park
  • 113
  • 1
  • 6

1 Answers1

3

* selects everything, including tags, classes, ids and eveything you can think of.

html, body only selects the body and the html tags.