Web Design with HTML and CSS

(National Geographic (Little) Kids) #1

60


Web languages

Web Design with HTML and CSS Digital Classroom

6 Click the Revalidate button. You now see a Congratulations message that the page has
been checked and found to be compliant as XHTML 1.0 Strict.
Although the page is valid it may not look good to a viewer. This example uses a page
that has missing styles and missing images to emphasize this point. It’s important to
understand that having valid code is only one step in a series to make certain your web
pages can be viewed by the widest possible audience.

You can validate web pages that you’ve already placed online. Do this by using the Validate by
URL option. You can also paste HTML code directly into the validator by choosing the Validate
by Direct Input option.

7 In your web browser, choose File > Open, navigate to the web04lessons folder, and select
the same w3c_compliant.html document that you just confi rmed was valid. If you are
using Internet Explorer, navigate to the web04lessons folder on your computer and drag
and drop w3c_compliant.html into it.

A “valid” page can have links to images that don’t exist and may have a poor visual design.

Because we know that the page uses valid XHTML, we know that whatever problems
there are with the page, they are not due to improper XHTML code. We know that
there are no missing tags or misspelled tags. This can be useful for troubleshooting,
allowing you to quickly identify any syntax problems.
Free download pdf