HTML and CSS Reference
In-Depth Information
The document head provides processing information and metadata relating to the whole document. The style
sheets are usually linked here too.
The document body holds the content of the document. This can contain simple text, formatted text, images,
videos, applets, or dynamic content, for example. The most common generic containers are the div elements
(Figure 3-3 ), while the generic inline container is the span element. Blocks of texts that can be considered paragraphs
should be written as the content of the p element.
<div id="header">
<div id="nav">
<div class="section">
<div id="sidebar">
<div class="article">
<div class="article">
<div class="section">
<div class="article">
<div class="article">
<div id="footer">
Figure 3-3. Typical document structure within the body up to HTML 4.01
In older versions of HTML, the typical web document structure looked like Listing 3-32.
Listing 3-32. The Document Structure Up to HTML 4.01
"-//W3C//DTD HTML 4.01//EN"
" " >
<title>Sample HTML document structure</title>
<div class="section">
<div class="article">
<p>... first paragraph of main content ...</p>
<div class="article">
<p>... second paragraph of main content ...</p>
Search WWH ::

Custom Search