validation problem

Let's talk about interface elements, validation, and Sec. 508.

Moderators: rcrisler1, saltybeagle

validation problem

Postby jbecic2 » Wed Nov 08, 2006 12:24 pm

Hi :)

I'm having problems validating one of our pages...it keeps saying there's one error and as far as I can tell (which isn't very far) the error is in part of the coding that I can't change.

The page is: http://physics.unl.edu/research/condens ... nsed.shtml

and the validation page that keeps saying this is:

http://validator.w3.org/check?uri=http% ... 1#line-551

Can you help?

Thanks! :) -Jenny
jbecic2
 
Posts: 1
Joined: Tue Sep 12, 2006 12:16 pm
Location: Brace Lab 116

Postby saltybeagle » Mon Dec 04, 2006 11:04 am

Hey Jenny, sorry no one got back to your post.. I must have missed it.

The validator is confused because it couldn't find a closing div tag.

You have an open div tag within the main content area of your page, which has no closing tag:

Code: Select all
<h1><strong>Condensed Matter &amp; Materials Physics (CMMP) <br /> and Nanotechnology </strong></h1>
<div align="left">


The message 'end tag for "div" omitted, but OMITTAG NO was specified.' just means that it couldn't find a closing div tag once it reached the bottom of the page.

I visualize the validator's method of validating tags as a stack of plates at a buffet line - At the start the stack of plates is empty, and every time a tag is opened a plate is added to the stack, and every time a tag is closed a plate is removed from the stack. Ideally when it reaches the end of your page there should be no more plates on the stack... empty/valid! But there was one plate left on the stack, the <div> tag which was a main container div opened outside your editable region. Unfortunately the validator has no idea which specific plate was missing it's matching closing div, all it knows is the first one opened is still on the stack.

Hope that analogy helps people understand a little more about how the validator works, and why it's messages can be confusing at times.

Good luck!
Brett Bieber
Image
saltybeagle
 
Posts: 376
Joined: Fri Jan 16, 2004 3:10 pm
Location: 321 Admin


Return to Usability/Accessibility

Who is online

Users browsing this forum: No registered users and 1 guest