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
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
" http://www.w3.org/TR/html4/strict.dtd " >
<html>
<head>
<title>Sample HTML document structure</title>
</head>
<body>
<div class="section">
<div class="article">
<h2>Abstract</h2>
<p>... first paragraph of main content ...</p>
</div>
<div class="article">
<h2>Overview</h2>
<p>... second paragraph of main content ...</p>
</div>
</div>
 
Search WWH ::




Custom Search