HTML and CSS Reference
In-Depth Information
BE the Browser
Below, you'll find the CSS file “style.
css”, with some errors in it. Your job
is to play like you're the browser
and locate all the errors.
After you've done the
exercise, look at the end
of the chapter to see if
you caught all the errors.
If you
have err
ors in yo
ur CSS,
usually
what ha
ppens is
all the r
ules
below
the erro
r are ign
ored. So
,
get in
the hab
it of loo
king for
error
s now, by
doing th
is exerc
ise.
<style>
body {
background-color: white
h1, {
gray;
font-family: sans-serif;
}
h2, p {
color:
}
<em> {
font-style: italic;
}
</style>