I understand how CSS inheritance works, but I'm having trouble finding a good resource that indicates what properties the CSS spec initially applies to standard HTML elements like div
, span
, and ul
. A div
element is a block element, and a span
element will be placed inline
. These elements naturally have properties that cause these different behaviors, they aren't inherited. For example, if a span
element and a div
are two sibling elements that are direct descendants of the html
element, they would still differ in behavior.
Where can I find a list of the CSS properties that each element initially has?