I am doing this : https://www.freecodecamp.org/learn/responsive-web-design/basic-css/adjust-the-padding-of-an-element
I want to recreate that myself but I found something that I don’t understand why div and h act differently. I understand their functionality, but I don’t understand why h inside div and h by itself produce different visual.
https://codepen.io/dharyadi/pen/dyYwOYX
The top yellow box uses h inside div while the bottom yellow box uses h without div