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.

Validation: it’s not just for <strong>HTML</strong><br />

After Chapter 6, you’re an expert at using the W3C validator, and you’ll<br />

find the validator is up to date and ready to validate your X<strong>HTML</strong>. You<br />

do that in exactly the same way that you validated <strong>HTML</strong>.<br />

there are no<br />

Dumb Questions<br />

Q: How does the validator know whether<br />

I’m validating <strong>HTML</strong> or X<strong>HTML</strong>? After all, this<br />

is the same page I used for <strong>HTML</strong>.<br />

A: The validator looks at your DOCTYPE<br />

declaration, which states that the document is<br />

either X<strong>HTML</strong> Transitional or X<strong>HTML</strong> Strict, and<br />

that’s what it bases its validation on.<br />

Go to validator.w3.org and either paste<br />

in your X<strong>HTML</strong>, upload it, or point the<br />

validator to your URL.<br />

The validator will check<br />

your X<strong>HTML</strong> and report<br />

that it’s valid, or report<br />

any errors to you.<br />

Validator<br />

moving to xhtml<br />

We’re totally up<br />

on the new X<strong>HTML</strong><br />

standards and ready to<br />

enforce them.<br />

you are here 277

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

Saved successfully!

Ooh no, something went wrong!