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.
|
|
|
|
|
![]() |
||
Trust me, don't bank on making validated XHTML documents!!!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Trust me, don't bank on making validated XHTML documents!!!
This is the code....
[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?! |
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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! |
|
#4
|
||||
|
||||
|
the frameset tags do not go between the <head> tags! They go underneath the <head> tags where the <body> would usually be...
|
|
#5
|
||||
|
||||
|
put your frameset code AFTER your <head> and before </html>
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
If you use:
<frameset rows="270,*" border="0"> The borders are gone and it still validates... am I wrong? |
|
#8
|
|||
|
|||
|
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! |
|
#9
|
||||
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#10
|
|||
|
|||
|
Yes. No change!
|
|
#11
|
||||
|
||||
|
Quote:
Keep messing with xhtml, and read articles about it, soon you'll be praising it instead of bashing it. |
|
#12
|
|||
|
|||
|
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. |
|
#13
|
|||
|
|||
|
Quote:
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. |
|
#14
|
|||
|
|||
|
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. |
![]() |
| Tags |
| trust, bank, making, validated, xhtml, documents |
| Thread Tools | |
|
|
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 |