Hello, Html has a lot of rules because it is somewhat strict, all you do here is take out the spaces for example just look at an Html boilerplate and compare.
I lot of people would argue that HTML is too lenient
But there is no actual rule in HTML that says you can’t have spaces around the equals sign on attributes. It’s definitely a best practice not to, but it’s not a strict rule.