04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

exercise solutions<br />

264 Chapter 6<br />

Solution<br />

Exercise<br />

Solution<br />

4<br />

T<br />

8<br />

B<br />

15<br />

D<br />

1<br />

V<br />

Across<br />

2<br />

S<br />

A T<br />

3<br />

R U E<br />

L Y<br />

I T L E A<br />

5<br />

D E W<br />

6<br />

3 C C<br />

A E C<br />

T B C<br />

7<br />

O M P L I A N T E<br />

O D H S<br />

R O W S E R W A R S S<br />

V R C<br />

9<br />

E A<br />

11<br />

13<br />

M<br />

E O T<br />

14<br />

10<br />

S<br />

L T T Q<br />

12<br />

S I<br />

L C R U I<br />

R A N S I T I O N A L<br />

O C T Y P E E C R I<br />

A E R T K T<br />

3. True or false: element names should be<br />

lowercase. [true]<br />

4. Required in the element. [title]<br />

6. Standards organization that supplies the<br />

validator. [w3c]<br />

7. When your <strong>HTML</strong> meets the standards, it is<br />

this. [compliant]<br />

8. Microsoft versus Netscape. [browserwars]<br />

9. The boss wanted to standardize before adding<br />

this to the <strong>HTML</strong>. [css]<br />

11. attribute required in standard <strong>HTML</strong>. [alt]<br />

14. DOCTYPE that allows older <strong>HTML</strong> tags.<br />

[transitional]<br />

15. Definition that tells the browser and validator<br />

what kind of <strong>HTML</strong> you're using. [doctype]<br />

R S Y<br />

Down<br />

1. This service will check your <strong>HTML</strong> for<br />

compliance <strong>with</strong> the standards. [validator]<br />

2. In the old days of <strong>HTML</strong>, this was mixed <strong>with</strong><br />

<strong>HTML</strong> structure. [style]<br />

5. Reason alt attribute is required. [accessibility]<br />

6. Victim of the browser wars. [webdeveloper]<br />

7. The ________ encoding tells the browser which<br />

set of characters you're using. [character]<br />

10. DOCTYPE that expects your <strong>HTML</strong> to be fully<br />

compliant <strong>with</strong> 4.01. [strict]<br />

12. If the browser can't tell what version of <strong>HTML</strong><br />

a page is, it uses this mode. [quirks]<br />

13. Tag that tells the browser about the page.<br />

[meta]<br />

Your turn. Add the strict DOCTYPE and the tag to<br />

“directions.html” and “elixir.html”. Try validating them – do<br />

they validate? If not, fix them so that they do.<br />

Solution: To validate “elixir.html”, you’ll have to add the<br />

alt attribute to each of your elements.<br />

B

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

Saved successfully!

Ooh no, something went wrong!