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 />

p<br />

h1<br />

p<br />

p<br />

p<br />

p<br />

p<br />

h2<br />

p<br />

ul<br />

div<br />

div<br />

544 Chapter 12<br />

Each block element<br />

in your “lounge.<br />

html” file is flowed<br />

from top to bottom,<br />

<strong>with</strong> a linebreak in<br />

between.<br />

These three elements<br />

have nested block<br />

elements in them.<br />

We didn’t ask you<br />

to, but if you<br />

went the extra<br />

mile, here’s how<br />

they get flowed.<br />

div<br />

h2<br />

p<br />

h3<br />

p<br />

p<br />

h3<br />

p<br />

p<br />

h3<br />

p<br />

p<br />

BE the<br />

Exercise<br />

Solutions<br />

Open your “lounge.html”<br />

file and locate all the<br />

block elements. Flow<br />

each one on to the page<br />

below. Just concentrate<br />

on the block elements<br />

nested directly inside the<br />

body element. You can<br />

also ignore the “float”<br />

property in your <strong>CSS</strong><br />

because you still don’t know what

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

Saved successfully!

Ooh no, something went wrong!