Default CSS Display Values for Different HTML Elements
Every element in an HTML document accepts a value for the CSS display
property. The possible values you can use for display
are many.
The three most commonly used values are none
, block
, and inline
. But what if you don’t define a display
value for an element? Well, all elements have an initial or default state for their display
value. Let’s consider some of these and see some interesting things you might not have known.