Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 23rd, 2005, 07:40 AM
Micster Micster is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 5 Micster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 19 sec
Reputation Power: 0
Question W3 Validation Failing

I have been using the W3 validator (http://validator.w3.org/) to clean up my code and got rid of all but two problems:
  • document type does not allow element "BODY" here.
  • end tag for "HTML" which is not finished.

I have been through all my code to try and find the problems. I finally ended up with the following which still fails:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Not W3 Validated</title>
</head>
<body>
Hello
</body>
</html>


Please can somebody let me know what's wring with this?

Reply With Quote
  #2  
Old October 23rd, 2005, 07:42 AM
Micster Micster is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 5 Micster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 19 sec
Reputation Power: 0
... or alternatively, you could let me know what is wrong with this!

Reply With Quote
  #3  
Old October 23rd, 2005, 11:47 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 548 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 6 h 35 m 44 sec
Reputation Power: 4
frames

Hi Micster, welcome to the forums,
W3c validation errors are easy to understand once you understand them.
You are using DOCTYPE "frameset", but you don't have any frames.
If you want to use frames the correct page structure is someting like
Code:
<html>
<head>
<title>...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="140,*" cols="160,*" frameborder="NO" border="0" framespacing="0"> 
  <frame name="..." scrolling="NO" noresize src="..." >
  <frameset rows="75,*" frameborder="NO" border="0" framespacing="0" cols="*"> 
    <frame name="..." scrolling="NO" noresize src="..." >
    <frame name="..." scrolling="NO" noresize src="..." >
  </frameset>
  <frame name="..." scrolling="YES" noresize src="...">
  <frame name="..." src="...">
</frameset>
<noframes>...</noframes> 
</html>

Reply With Quote
  #4  
Old October 23rd, 2005, 12:36 PM
Micster Micster is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 5 Micster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 19 sec
Reputation Power: 0
Changing the DocType worked

Thanks Mittineague, a simple change to the correct doctype and...

"This Page Is Valid HTML 4.01 Transitional"

Yipee!

[Now all I need to do is work up the strength to correct the 30+ errors I have on each page when validating as strict, but that can wait for another day.]

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > W3 Validation Failing


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway