HTML and CSS Reference
In-Depth Information
Are we there yet?
You have an HTML ile with markup
—
does that make a web page? Almost.
You've already seen the
<html>
,
<head>
,
<title>
, and
<body>
tags, and
we just need to add those to make this a irst-class HTML page…
Fi
rst, su
rroun
d your
HTM
L
wi
th <ht
ml> &
</ht
ml>
ta
gs. Th
is tel
ls the
brows
er
th
e cont
ent o
f the
file i
s
HT
ML.
<html>
<head>
<title>
Starbuzz Coffee
</title>
</head>
<body>
<h1>
Starbuzz Coffee Beverages
</h1>
<h2>
House Blend, $1.49
</h2>
<p>
A smooth, mild blend of coffees from Mexico,
T
he b
ody c
onsist
s
of th
e <bo
dy>
& </b
ody>
tags
and e
veryt
hing i
n
betwe
en.
Bolivia and Guatemala.
</p>
<h2>
Mocha Cafe Latte, $2.35
</h2>
<p>
Espresso, steamed milk and chocolate syrup.
</p>
<h2>
Cappuccino, $1.89
</h2>
<p>
A mixture of espresso, steamed milk and foam.
</p>
<h2>
Chai Tea, $1.85
</h2>
<p>
A spicy drink made with black tea, spices,
milk and honey.
</p>
</body>
</html>
Keep your head
and body separate
when writing HTML.