04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

exercise solutions<br />

Exercise<br />

Solutions<br />

A bunch of <strong>HTML</strong> elements, in full costume, are playing a party<br />

game “Who am I?” They gave you a clue – you tried to guess<br />

who they were based on what they said.<br />

Tonight’s attendees:<br />

Quite a few of the charming <strong>HTML</strong> elements you’ve seen so<br />

far showed up for the party!<br />

I’m the #1 heading.<br />

I’m all ready to link to another page.<br />

Emphasize text <strong>with</strong> me.<br />

I’m a list, but I don’t have my affairs in order.<br />

I’m a real linebreaker.<br />

I’m an item that lives inside a list.<br />

I keep my list items in order.<br />

I’m all about image.<br />

Quote inside a paragraph <strong>with</strong> me.<br />

Use me to quote text that stands on its own.<br />

122 Chapter 3<br />

Name<br />

Who am I?<br />

Inline or<br />

block?<br />

h1 block<br />

a<br />

em<br />

ul<br />

br<br />

li<br />

ol<br />

img<br />

q<br />

blockquote<br />

inline<br />

inline<br />

block<br />

block<br />

block<br />

inline<br />

inline<br />

block<br />

Stumped?<br />

is in<br />

limbo land<br />

between block<br />

and inline. It<br />

does create a<br />

linebreak, but<br />

isn’t typically<br />

displayed <strong>with</strong><br />

space above<br />

and below<br />

it, like block<br />

elements are.<br />

We haven’t<br />

talked about<br />

this in detail<br />

yet, but, yes,<br />

is inline.<br />

Give it some<br />

thought and<br />

we’ll come<br />

back to this in<br />

Chapter 5.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!