HTML and CSS Reference
In-Depth Information
<!-- Set a global URI stem for all references -->
<base href="http://htmlref.com/baseexample" />
<!-- Linked and document specific styles -->
<link rel="stylesheet" href="screen.css" media="screen" />
<link rel="stylesheet" href="printer.css" media="print" />
<style type="text/css">
<!--
h1 {font-size: xx-large; color: red; font-style: italic;}
-->
</style>
<!-- Embedded and linked scripts -->
<script type="text/javascript">
<!--
var globalDebug = true;
//-->
</script>
<script src="ajaxtcr.js" type="text/javascript"></script>
<script src="effects.js" type="text/javascript"></script>
</head>
<body>
<p> Some body content here. </p>
</body>
</html>
The various details of the tags within the document head are all presented in the
element reference in Chapter 3; the aim here was to show you the organization of the head
element and how it supports the body . Now let's move on to see the content in the
document body itself.
The Document Body
After the head section, the body of a document is delimited by <body> and </body> . Under
the HTML 4.01 specification and many browsers, the body element is optional, but you
should always include it, particularly because it is required in stricter markup variants.
Only one body element can appear per document.
Within the body of a Web document is a variety of types of elements. For example, block-
level elements define structural content blocks such as paragraphs ( p) or headings ( h1-h6 ).
Block-level elements generally introduce line breaks visually. Special forms of blocks, such
as unordered lists ( ul ), can be used to create lists of information.
Within nonempty blocks, inline elements are found. There are numerous inline elements,
such as bold ( b ), italic ( i ), strong ( strong ), emphasis ( em ), and numerous others. These
types of elements do not introduce any returns.
Search WWH ::




Custom Search