Help Fixing Validation Errors

A place to ask questions and get help. Be the first on your block to post ...

Help Fixing Validation Errors

Postby mwolfe1 » Tue Nov 03, 2009 4:46 pm

I did try W3C and figured out how to fix error in the Navigation file and one other minor error but unable to fix the two errors listed below. I've looked at other UNL website view sources and can't figure it out. Any suggestions?

Also, the navigation bar still shows up only intermittently on our web site in Internet Explorer 8.0. Works fine in FireFox. Will correcting the two errors below really fix this problem?

#1 ERROR
Line 135, Column 46: end tag for "ul" omitted, but OMITTAG NO was specified
<InstanceEndEditable></div>

SOURCE LISTING:
<li><a>Email Us</a></li>
</ul>
</li>
<InstanceEndEditable></div>
</div>
</div>
<div>
<div><InstanceBeginEditable>


#2 ERROR:
Line 318: Premature end of data in tag html line 2
<InstanceEnd></html>

SOURCE LISTING:
| <a>W3C</a> | <a>CSS</a> <a><img></a> </div>
</div>
</div>
<div> </div>
</div>
</body>
<InstanceEnd></html>
mwolfe1
 

Help Fixing Validation Errors

Postby MarkHiatt » Thu Nov 05, 2009 12:05 pm

Compound tags are kind of tricky, at first. Like Tables, Lists require more than a simple It-Starts-Here tag and an It-Ends-Here tag. We are so used to paragraphs starting and stopping and surrounding the text that we get confused when we need more taggage to get the idea across.

In the case of Lists, we need to start and stop our list, with <list> and </list> tags, sure. But then we also need to delineate the individual list items. These are set off from the rest of the information with <li> and </li> tags.

This is one of those times when indenting and blank lines can help a lot. You can see examples here ( http://www.unl.edu/webtraining/DWCS4HTML01/html14.shtml ). An ordered list is on the left, an un-ordered list on the right. Notice that the ordered list begins, and it contains list items for Crawl, Walk and Run, and then the ordered list ends. All of the list items must live within tags that start and stop the list, itself.

In your case, it looks like you have a list item, Email us, which correct begins and ends. Then your unordered list ends... and then another list item ends. This may be valid if you are nesting navigation links, but we don't see any other references to that. I'm thinking adding a </ul> to the final </li> may solve the problem.
=MH=
MarkHiatt
 
Posts: 36
Joined: Mon Jul 26, 2004 3:09 pm
Location: '501' Building - Room 123.1

Fixed.

Postby mwolfe1 » Thu Nov 05, 2009 12:28 pm

Putting the </ul> at the end worked. Guess I miscounted when I was checking all my tags.

Thanks!

The navigation bar still does not appear in IE 8 some of the time. It works intermittently. Can't figure this one out. It does work consistantly in Firefox.
mwolfe1
 


Return to Help & Assistance

Who is online

Users browsing this forum: No registered users and 1 guest

cron