IMO most of the complexity of the web comes from 2 shortcomings:
1 - It's hard to reuse HTML. Consequently, even static sites need some sort of build step.
2 - HTML needed something like htmx, so every component could be updated dynamically without writing JS code.
According to my estimations, if (1) and (2) were native to HTML, 93% of all websites wouldn't need JS.