HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 16th, 2008, 03:54 PM
vmethod vmethod is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2008
Posts: 5 vmethod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 29 sec
Reputation Power: 0
Question End tag for "div" omitted, but OMITTAG NO was specified.

I am clueless as to how to fix this. Can someone help me figure this one out?

the Validator error:
Line 128, Column 6: end tag for "div" omitted, but OMITTAG NO was specified.

</body>

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".


Here is an info from the validator following the error:

Line 22, Column 0: start tag was here.

<div id="container">


But looking at my code, there is no error?!
I am also using a PHP include to pull html in from a menu.php (this file only has the menu code, no header, body, html tags).

When I do the tidy html, it wants me to cut n paste the menu.php code in to the entire page, I dont want to do that but i want my code to be valid.

Please help!
Thanks in advance!

Reply With Quote
  #2  
Old December 16th, 2008, 04:30 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 3,009 Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Days 17 h 35 m 11 sec
Reputation Power: 1223
We need to see some code if we are going to help.

Either post a link or parse the html in a post,
or do as the validator suggest check if every div element is closed properly.
__________________

Reply With Quote
  #3  
Old December 16th, 2008, 04:45 PM
summercom's Avatar
summercom summercom is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Michigan, USA
Posts: 278 summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 11 h 4 m
Reputation Power: 16
Quote:
Originally Posted by vmethod

Here is an info from the validator following the error:

Line 22, Column 0: start tag was here.

<div id="container">
Thanks in advance!


You didn't close the div with a </div> or you closed another tag before closing this one like this:

Code:
<p><span>text</p></span>


The above is a no-no, you need to close the span before closing the paragraph

Reply With Quote
  #4  
Old December 16th, 2008, 04:57 PM
vmethod vmethod is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2008
Posts: 5 vmethod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 29 sec
Reputation Power: 0
it worked out...

i went through it and tracked all my <div></div> which was odd because each <div> was closed with </div> but for sh**s and giggles, i added another </div> at the very end and wouldn't you know...


thanks! even though i'm still a little confused lol.

Reply With Quote
  #5  
Old September 18th, 2012, 12:56 PM
RodmanB RodmanB is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Location: San Antonio, TX USA
Posts: 6 RodmanB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 35 m 10 sec
Reputation Power: 0
end tag for "div" omitted, but OMITTAG NO was specified

I too have the same problem. Tried adding extra closing div tag. Just created more errors. So I started removing closing div from the bottom up and got 2 errors saying exactly the opposite thing for the same line that contains only 1 closing div tag!

line 285 end tag for "div" omitted ...
line 285 end tag for "div" which is not open ...


go figure.

Reply With Quote
  #6  
Old September 18th, 2012, 04:45 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 11 m
Reputation Power: 4192
Welcome to DevShed Forums, RodmanB.

To quote Akh's post above...
Quote:
Originally Posted by Akh
We need to see some code if we are going to help.

Either post a link or parse the html in a post,
or do as the validator suggest check if every div element is closed properly.

New users are restricted from posting URLs until they have made 5 posts. You may need to get around this by leaving out the "http://" and putting a space before each ".". Yes this rule is annoying, but the administrators say it's necessary for limiting spam.

P.S. Next time please start your own thread instead of reviving a very old thread.
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Reply With Quote
  #7  
Old September 18th, 2012, 05:30 PM
RodmanB RodmanB is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Location: San Antonio, TX USA
Posts: 6 RodmanB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 35 m 10 sec
Reputation Power: 0
code link

OK, sorry for any violations I may have committed. It was more a comment and less a request for an answer. I've already spent 15+ years building and debugging websites and can live with a minor anomaly. However, if you want to see the source, it's at crowderradiator. Sometime fresh eyes will catch something I may have inadvertently overlooked.

Thank for the reply

Reply With Quote
  #8  
Old September 18th, 2012, 06:04 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 11 m
Reputation Power: 4192
The HTML Validator extension for Firefox indicates that a space is missing between the href and title attributes of the first link on that page.

Using the count sub-feature of the search feature in my text editor, I see that the number of <div> start and end tags is not equal. This is a case though where the validator isn't very good at pinpointing where the error is. By looking at the DOM structure, using Firefox's Firebug extension, I see that the end tag for the "headMast" <div> is missing.

By the way, the hspace, vspace, border, and align attributes for <img> elements are obsolete. For the first two, CSS margins should be used instead. For the third, CSS border properties should be used. The fourth is a little trickier to replace with CSS because it depends on which value is used.

Reply With Quote
  #9  
Old September 18th, 2012, 07:54 PM
RodmanB RodmanB is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Location: San Antonio, TX USA
Posts: 6 RodmanB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 35 m 10 sec
Reputation Power: 0
Old School - goes back to school

Quote:
Originally Posted by Kravvitz
The HTML Validator extension for Firefox indicates that a space is missing between the href and title attributes of the first link on that page.

Using the count sub-feature of the search feature in my text editor, I see that the number of <div> start and end tags is not equal. This is a case though where the validator isn't very good at pinpointing where the error is. By looking at the DOM structure, using Firefox's Firebug extension, I see that the end tag for the "headMast" <div> is missing.

By the way, the hspace, vspace, border, and align attributes for <img> elements are obsolete. For the first two, CSS margins should be used instead. For the third, CSS border properties should be used. The fourth is a little trickier to replace with CSS because it depends on which value is used.


***FIXED***
It was actually the "corral" div that was missing.

I found it by cleaning up the code indents and aligning the opening and closing tags. Maybe 'old school' but it's easier than trying to figure what the 'Validator' was trying to say.

As for the obsolete elements well, I guess I should clean up my code snippets. Unfortunately, production schedules sometimes forces us to recycle obsolete code. As soon I get time I'll take your suggestions. In fact, I probably should be doing that instead of this.

Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > End tag for "div" omitted, but OMITTAG NO was specified.

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap