HTML and CSS Reference
In-Depth Information
BE the Browser Solution
Below, you'll find the CSS file with
some errors in it. Your job was to
play like you're the browser and
locate all the errors.
Did you find them all?
N o
H T
M L
i n y
o u r
C S S
! T
h e
< st
y l e >
t a g
s a
re H
TM
L a
n d d
o n ' t
<style>
wo
r k i n
a
C S S
st y
l e sh
e e t .
body {
background-color: white
Ex
tra
com
ma
h1, {
gray;
font-family: sans-serif;
}
Missing prope
rty name
and colon
Mi
ssing
pro
per
ty v
alue
and
sem
icol
on
h2, p {
color:
}
Using the HTML tag instead
of just the
element name. This should be
em.
<em> {
font-style: italic;
}
</style>