In a project that I was assigned to fix some stuff in, I just stumbled upon this:
<html lang="de" style="background-image: url(assets/img/detail_bg.jpg);">
To me it feels plain wrong to apply a background-image on the root element; I'd rather put this on the body
instead, or even further down the DOM in a wrapping div
.
Yet I wasn't able to find information on this.
Can anyone shed some light as of what is allowed/recommended/discouraged to do on the root element? Links very welcome.