this affects performance, as the browser engine must apply this style to every element of the page, which will lead to heavy rendering, especially on large pages with a lot of elements, and this method is also bad practice as it can remove good default styles for some elements
you can optimize this code by reducing its size, using it only on some elements that create problems like this
h1,ul {
margin:0;
padding:0;
}
source share