Trust me, don't bank on making validated XHTML documents!!!

This is a discussion on "Trust me, don't bank on making validated XHTML documents!!!" within the Web Page Design section. This forum, and the thread "Trust me, don't bank on making validated XHTML documents!!! 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 Jul 27th, 2005, 23:22
New Member
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Trust me, don't bank on making validated XHTML documents!!!

This is the code....

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<frameset rows="270,*">
<frame src="top.html" id="top" frameborder="0" border="0" />
<frameset cols="460,460">
<frame src="left.html" id="left" frameborder="0" border="0" />
<frame src="right.html" id="right" frameborder="0" border="0" />
</frameset>
</frameset>
</body>
</html>
...and this is the **** you get:

[i]Line 5, column 6: end tag for "head" which is not finished

</head>

Most likely, You nested tags and closed them in the wrong order. For example

[i]...</p> is not acceptable, as must be closed before

. Acceptable nesting is:

...</p>


...What? What the hell do I have to do to finish this tag? Polish it and call it Nelly?!

Line 6, column 5: document type does not allow element "body" here

<body>

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).


...yet another tag which is where it's supposed to be, but the validator doesn't like it. Doesn't tell me how to rectify it though, does it!!!

Line 7, column 22: document type does not allow element "frameset" here

<frameset rows="270,*">


...then...where does it go?! It didn't like sitting between the HEAD tags either.

Line 15, column 6: end tag for "html" which is not finished

</html>


ARRRRGGGGGHHHH!!!!

So my question is (after crying on my keyboard for hours): do I send an abusive email to www.w3.org or do I change ALL my coding to HTML 4.0?!
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 Jul 28th, 2005, 00:28
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
The solution is quite simple actually - you might kick yourself.

It's a requirement for every page to have a title tag! You don't have one and so your head tag is technically incomplete.

And also you have a body, but nothing in it (a frameset does not count and technically, you shouldn't have a body as this document isn't displaying content itself). Simply remove the body tags and your document validates.
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 Jul 28th, 2005, 02:06
New Member
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I removed the <body> tags, put the frame code between the <head> tags and added the <title></title> tags.

OK well that now leaves me with two errors.......

Line 6, column 22: document type does not allow element "frameset" here

<frameset rows="270,*">


Need I ask why the "frameset" DTD disallows a ********** frameset tag???

Line 14, column 6: end tag for "html" which is not finished

</html>


Pain pain pain....

Many thanks for all your help, I do appreciate it, even if I maon at you about xhtml for the next few weeks!
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 Jul 28th, 2005, 08:41
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
the frameset tags do not go between the <head> tags! They go underneath the <head> tags where the <body> would usually be...
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 Jul 28th, 2005, 08:44
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
put your frameset code AFTER your <head> and before </html>
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
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 Jul 28th, 2005, 11:00
New Member
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
HOOOORAAAAAAAAAAAH! It is validated, but.... the frame borders show as a thin white T. I want a seemless look.

How do I remove the borders? The border="0" attribute is invalid apparently in xhtml.
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 Jul 28th, 2005, 11:06
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
If you use:
<frameset rows="270,*" border="0">
The borders are gone and it still validates... am I wrong?
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 Jul 28th, 2005, 11:49
New Member
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Nope...

Line 8, column 54: there is no attribute "border"

<frame src="top.html" id="top" frameborder="0" border="0" />


CSS won't work either. ARRGGGH!
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 Jul 28th, 2005, 13:36
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
you tried:-
<frame src="top.html" id="top" frameborder="0" style="border:0;" />
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
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 Jul 28th, 2005, 21:56
New Member
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Yes. No change!
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 Jul 30th, 2005, 04:26
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
The nightmare of xhtml....
I'm going to guess you are just learning xhtml. Take it from me, proper use of xhtml code solves lots of cross-browser problems, as well as good implementation of CSS.

Keep messing with xhtml, and read articles about it, soon you'll be praising it instead of bashing it.
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 Jul 30th, 2005, 11:09
New Member
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Well it's just one problem after another. I don't write javascripts, so when the validator picks up a problem with it (say for instance that I can't use document.write), I have no idea how to fix it.

I just want to do what I want to do, without all this hassle. I don't care about cross-browser issues, if you're not using IE then tough!

I'm just going to have to stick with a html/xhtml unvalidated hybrid mutant until I can be bothered to resolve my issues with it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Jul 30th, 2005, 12:34
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by subynesimean
I just want to do what I want to do, without all this hassle. I don't care about cross-browser issues, if you're not using IE then tough!
There's a lot wrong with that statement! At the moment, IE is one of the worst browsers for sticking to standards. If everyone took the stance of not caring for other browsers then the internet would be chaos!

It's true that it can be difficult and frustrating to make a document that adheres to the standards and validates, but that's why places like Webforumz exist so that you can ask other people and learn more.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Jul 30th, 2005, 22:39
New Member
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
As it stands, for me, the only way to get a validated xhtml page is to make a xhtml declaration then add <head> and <body> tags where needed. If I want to add anything else, doom doom doom.

I'm on a dead line at the moment anyway.
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

Tags
trust, bank, making, validated, xhtml, documents

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
Trust Me - I'm A Web Designer 1840dsgn Free Web Site Critique 11 Apr 2nd, 2008 20:10
I don't know why this page isn't validated, help TheSealPortalTeam Web Page Design 3 Aug 21st, 2007 11:59
graphic-bank.com yayfur Free Web Site Critique 3 Sep 3rd, 2006 20:26
Image Bank Maverick25r Web Page Design 8 Jul 25th, 2006 12:37


All times are GMT. The time now is 23:55.


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