Lab #3 Creating a basic HTML web page

Validating your page


Web browsers (like Firefox and Internet Explorer) are designed to try to display your page correctly, even if you've made mistakes. But it's a good idea to verify that you haven't made mistakes by validating your page.

WARNING:
Proceed with caution. These next steps are a little tedious but must be followed carefully or you will have errors.

1. First, there are three changes you need to make to your html document. They look complex, but it isn't important to understand them at this point, just to know that you need to paste them in each time you create an html file.:

a. Add this line at the very beginning, before the <html> tag:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

This tells your browser (and the validator) which version of HTML you're using.

b. Replace:

<html>

with:

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

c. Add the following 2 lines to the <head> section of your document (in other words, after <head> and before </head>):  

<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />

<meta http-equiv="Content-Style-Type" content="text/css" />

2. Save these changes and upload the file again.

3. Go to the validator page: 

http://validator.w3.org/

(If the service in unavailable, try again in a minute or two.)

4. Enter the URL for your file (you'll need to modify the line below with your own UWnetID):

http://students.washington.edu/yourUWnetID/fit100/Lab03/fit1002.html

5. click on the validate button button.

You'll see a red line if there are errors in your page

invalide

or a green line if there are none.

validatation successful

If you get the red bar, scroll down the page to see what the errors are. Make changes and try again until your page validates. When it does...

You're done! The next page explains what will be graded for this lab

previous page   next page

 

 

 

 

 

Validator - invalid message

 

validator success