12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

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.

Web Authoring <strong>Boot</strong> <strong>Camp</strong><br />

To use the W3C Validator:<br />

• Open your web browser and go to http://validator.w3.org/.<br />

• Choose the ‘Validate by Direct’ Input tab.<br />

• Copy your full web page code from your text editor and paste it inside the input<br />

space provided on the W3C validator page.<br />

• Click the ‘Check’ button below the input space (you may need to scroll down the<br />

Validator page to see it).<br />

The W3C Validator will check your code and provide a new pages, with the results.<br />

• A red bar that reads “Errors found while checking this document as HTML or<br />

XHTML (whatever version)!” means that your code has errors, and that you need<br />

to scroll down the page to see them.<br />

• A green bar that reads “This document was successfully checked as HTML or<br />

XHTML (whatever version)!” means that your code has validated. You are authorized<br />

to add the W3C icon on your web page if you wish.<br />

The W3C Validator results can be very hard to decipher for newcomers and experts alike,<br />

so the W3C maintains a list of error messages and their interpretation: http://validator.<br />

w3.org/docs/errors.html<br />

If you get a bunch of error messages, refer to Axiom #4.<br />

Axiom #4: Don’t Panic!<br />

Common validation errors include:<br />

68<br />

• Doctype: A doctype declaration is mandatory for most current markup languages<br />

and without one it is impossible to reliably validate a document. One should place<br />

a doctype declaration as the very first thing in an HTML document and be sure to<br />

use the correct one for the coding being done.<br />

• No Character Encoding Found: An HTML document should be served along<br />

with its character encoding. You can choose from a number of encodings, though<br />

“iso-8859-1” (Western Europe and North America) and “utf-8” (Universal, and<br />

more commonly used in recent documents) are common encodings if you are not<br />

sure which to choose.<br />

• Flash or embedded media does not validate: Many Flash authoring tools rec-

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

Saved successfully!

Ooh no, something went wrong!