Help validating

This is a discussion on "Help validating" within the Web Page Design section. This forum, and the thread "Help validating are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 3rd, 2008, 22:44
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Help validating

Hi

I can't seem to workout these errors.

Unless I have made some new ones today, this should make the site 100% valid.

Cheers

http://www.capoeiracanal.co.uk/capoe...ol-contact.php

Last edited by Oak; Feb 4th, 2008 at 09:12.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 3rd, 2008, 22:53
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Help validating

Hi Oak.

These errors you are getting tend to come from a thing nicknamed the domino effect.
You have forgotten to close a tag somewhere along the way (usually a </div>) which causes these so called 4 errors in the validator when you actually have one.

It can take time for you to see where this tag is missing, but it good to learn and how to spot errors in your html without me doing it for you.

Hope this Helps,
Ed

EDIT: With these errors, it usually is the first error you need to refer to. In this case, it was correct.
Quote:
You may have neglected to close an element,
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 4th, 2008, 06:17
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Help validating

Use a strict doctype:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
...and again see if all your <div> has the opening and closing tag for each of them
Cheers...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 4th, 2008, 09:09
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Help validating

Ok thanks,

The div in red solved the problem. Can you please explain the code bellow, how come there are two divs next to each other with no content inside?

This validates, but to me and my very little knowledge in html, it seems wrong.

Code: Select all
<div class="chromestyleshadow" id="shadow">
&nbsp;</div></div>
<!--// END SHADOW //-->
<h1 class="title">School Contact</h1>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 4th, 2008, 11:08
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Help validating

Quote:
Use a strict doctype:
Oh yeah, sorry, but what is strict doc type?

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 4th, 2008, 12:11
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help validating

Looking at your code you needed to extra div to either close the div called
main container or the one called capoeira-canal-classes-banner.

You should try to add in comments after each closing div to say which div you are closing. Helps to keep track.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Feb 4th, 2008, 12:47
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Help validating

Brilliant!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Feb 4th, 2008, 18:41
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Help validating

http://creativecoding.webforumz.com/...ips-tricks/#q1
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Feb 4th, 2008, 22:49
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Help validating

Hey Jack, that looks like a nice & easy bit of PHP for updating Navigation of <ul><li>.

I was experiencing those same hassles you mention in your news letter!



I did know about leaving notes for divs, now my site is growing the is more of a need for them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Feb 5th, 2008, 05:17
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Help validating

Quote:
Originally Posted by Oak View Post
Oh yeah, sorry, but what is strict doc type?

Cheers
I have a busy day and I couldnt explain this to you but to give you the link here

Hope that helps
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Feb 5th, 2008, 07:15
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Help validating

Doctypes are almost like mean teachers - they mark what you code and give you grief for any mistakes. The Strict Doctype is like the head teacher, double nasty, whilst the transitional sometimes lets you off
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Feb 5th, 2008, 09:55
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Help validating

Ah.. ok, down to the head masters office it is for me then.

Thanks all!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
validating username sudhakararaog PHP Forum 0 May 27th, 2008 17:50
Worth validating with JS as well as php? djeyewater PHP Forum 6 Mar 27th, 2008 13:03
Validating target Lchad Web Page Design 16 Jan 18th, 2007 13:36
validating xhtml with ' &#39 rocket468 Web Page Design 3 Dec 31st, 2006 05:38
validating site and other seo rocket468 Job Opportunities 8 Aug 26th, 2006 09:53


All times are GMT. The time now is 21:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42