I looked here that the same yandex, google, webmoney, etc. assign the background with white color to the body . Why is this, is the default background color of the page not white?

And yet: no one will tell the beginning layout designer an article (or explain it yourself) about the basic recipes before starting the layout? Type of application display: block to html5 tags, etc.

  • Why is this, is the default background color of the page not white? Depends on the browser - Grundy
  • @Grundy understood, thanks. Can you tell which browser the color is not white? - Rodion Polyakov
  • one
    Netscape :-) used to have a light gray background, I cannot say anything about modern ones. Well, a little bit of spec: w3.org/TR/CSS2/colors.html#background - Grundy
  • one
    If you have two questions, it is better to ask them separately - Peter Olson
  • @Polyakov, at least in Firefox, you can set in Настройках — Содержимое colors and fonts by default. In some browsers, it probably depends on the theme of the graphical shell. - Cyrus

1 answer 1

background in body not in all browsers before was white.

As I remember, I started to typeset and there was such a problem that, in some browser, it was not white, but gray and applied to the body - background solutions of this problem. Moreover, it is possible to change the standard color in some browsers. And when you expect white layout, the whole idea of ​​collapsing!

There is an old book , but I'm still impressed (but for html4)

And there is also a good Russified HTML knowledge library.

  • Thank you, of course, but do you think you should learn from the book that was last updated in 2004? I have a basic idea, but I think I will not find something relevant at the moment. - Rodion Polyakov