Datasheet
28
Part I: Getting to Know (X)HTML and CSS
Listing 1-1: Meet an Author!
Listing 1-1 is reproduced in its entirety here, color-coded to distinguish the
various types of markup it uses. Lest you think this is mere vanity on Ed’s
part, we also hasten to point out that this is the basis for the “About me”
page described in Chapter 16 of this book, which we hope only makes it more
interesting, rather than the reverse!
Listing 1-1: Ed Tittel’s “About Me” Web Page
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8” />
<title>
Ed Tittel - Edtittel.com
</title>
<style type=”text/css”>
body {
background-image: url(images/background_page.gif);
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: .9em;
line-height: 1.3;
color: #FFF;
margin: 0px;
padding: 0px; }
#container{
width: 794px;
margin: 0px auto; }
#headerGraphic{
background-image: url(images/header.gif);
;
width: 794px;
height: 160px; }
b {
font-weight: bold;
}
h2 {
font-weight: bold;
font-size: 1.5em;
color:#96CDFF;
border-bottom: 1px solid white; }
h1 {
font-weight: bold;
font-size: 1.2em;
color:#96CDFF; }
ul{
list-style-type: none;
margin: 0px;
padding: 0px; }
06_9780470916599-ch01.indd 2806_9780470916599-ch01.indd 28 11/30/10 12:23 AM11/30/10 12:23 AM










