-6

What's difference between following the two selectors?

* {
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
}
Kunj
  • 1,980
  • 2
  • 22
  • 34
Junhee Park
  • 143
  • 1
  • 9

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.