It is a matter of how the browsers, according to the type/version and standard(strict)/quirks mode (with/without a Doctype) make the difference between window’s viewport , body, document and documentElement. The behaviors are peculiar and hardly to be set in a general rule.
According to the type and mode, body and/or documentElement might be the block element (the element which bears the size) of the window’s viewport, of the document or even of both :rolleyes:
Sounds messy, I know, but don’t ask me why, ask the people who created those browsers.
For instance, several examples
display (right toggle)
The page loads not at once. There are stages and events that we’ll study here. All of them are pretty important for solid understanding.
There are three ways to detect support for an event or a special property without browser sniffing.
- ‘name’ in obj
- assign attr
A widget is a short for a graphical component.
The basic, worst way to create components is a plain code.
For example, let’s say we need a menu which opens on click: