Datasheet
25
Chapter 1: The Least You Need to Know about HTML, CSS, and the Web
<title>
Welcome to Ed Tittel.com
</title> <!-- The text in the title element
appears in the title bar of the browser window when the page
is viewed -->
</head> <!-- closes the head element -->
<body> <!-- The content that appears on any Web page appears or is
invoked from inside the body element -->
<!-- Skip a bunch of copy here . . . -->
<!-- Subtitle text -->
<h1>
Contact:
</h1>
<!-- List -->
<ul>
<li><b>
Email:
</b>
etittel at yahoo dot com
</li>
<li><b>
Address:
</b>
2443 Arbor Drive, Round Rock, TX 78681-2160
</li>
<li><b>
Phone:
</b>
512-252-7497 (No solicitors, please)
</li>
<li>
List of publications available in:
<a href=”docs/v_et.doc”
target=”_blank”>
MS Word
</a></li>
<li>
Resume available in:
<a href=”docs/Resu-et13.doc” target=”_
blank”>
MS Word
</a></li>
</ul></body> <!-- End of the body section -->
</html> <!-- End of the HTML document -->
The preceding document is broken into a head and a body. Within each sec-
tion, certain kinds of elements appear. Many combinations are possible —
and that’s what you see throughout this book!
To see complete, valid HTML files for any and all screen captures of pages
we build in this book, visit the Web site at www.dummieshtml.com and
check the area for each chapter. The preceding markup appears therein as
01Listing01.html, for example.
Organizing HTML text
Beyond the division into head and body sections, text can be organized in
plenty of ways in HTML documents.
Document heads
Inside the head section, you can define all kinds of labels and information
besides a title, primarily to describe the document that follows, such as the
character sets used, meta data about the current document, scripts to be
invoked, and style information. The body section is where real content lives
and most (X)HTML elements appear.
06_9780470916599-ch01.indd 2506_9780470916599-ch01.indd 25 11/30/10 12:23 AM11/30/10 12:23 AM