Layouts define the page scaffold.
The layout file layouts/default.htm defines the page scaffold — everything that repeats on each page, such as the HTML, HEAD and BODY tags, StyleSheet and JavaScript references.
The page menu and footer in the Demo theme are defined in the layout as well.