It is more common to set font properties on the body
element than on the html
element. Normally, it doesn’t really matter.
Setting them on the html
element lets any other style sheet override your font settings by just setting their font settings on body
. This might sometimes be desirable.
It would also matter in the rare cases where you make some elements in the head
part visible, with CSS, against their default setting of display: none
.