HTML and CSS Reference
In-Depth Information
A bunch of HTML elements, in full costume, are playing a party
game “Who am I?” They gave you a clue—you tried to guess
who they were based on what they said.
Tonight's attendees:
Quite a few of the charming HTML elements you've seen so far
showed up for the party!
Inline or
block?
Name
Hmm, it lo
oks
like an inl
ine,
BUT <a>
can
wrap bloc
k
elements,
not
just text
. So,
depending
on
the conte
xt,
<a> can b
e
either inl
ine or
block.
h1
block
I'm the #1 heading.
a
hmm
…
I'm all ready to link to another page.
em
inline
Emphasize text with me.
Stum
ped?
<br>
is in limbo
land
between
bloc
k and inline.
It d
oes create
a lin
ebreak,
but
doesn't
bre
ak a bit
of
text into
two
separate
blo
cks, like if
you
had two <p>
ele
ments.
ul
block
I'm a list, but I don't have my affairs in order.
br
hmm…
I'm a real linebreaker.
li
block
I'm an item that lives inside a list.
ol
block
I keep my list items in order.
img
inline
I'm all about image.
q
i
nline
Quote inside a paragraph with me.
bl
ockquo
te
block
Use me to quote text that stands on its own.