Well, you now your red box and blue box are h5
elements instead of div
s, which is probably not what you would want in the real world.
This isn’t a situation that translates well to real use cases.
Speed really isn’t the issue with HTML. It’s about getting it to look and behave the way you want it to in every scenario, in a way that doesn’t require fussing every time you update something.