A Conversation for Website Developer's Forum
No Subject
lw - ck Started conversation Dec 7, 2002
Sorry to bother you all again.
I would of said I was pretty good with HTML so when I was checking my code on the W3C HTML validator (http://validator.w3.org/check) I was surprised when this (only) error apearred:
Line 15, column 6: end tag for "HEAD" which is not finished (explain...).
So I click explain:
"“end tag for ‘FOO’ which is not finished”
You have a ‘FOO’ element, but you have omitted some required sub-element of it. For instance, a TABLE with no TR's would cause this error."
What is the required sub element of HEAD I have disincluded in the following code:
?
Thanks a lot
CK
No Subject
Frankie Roberto Posted Dec 7, 2002
how about using /> for meta and link to close the tags...?
No Subject
lw - ck Posted Dec 7, 2002
"how about using /> for meta and link to close the tags...?"
That itself doesn't validate and doesn't make the /HEAD validate
CK
No Subject
HappyDude Posted Dec 7, 2002
Look at your code in notepad (or any other plain text editor) and see if there are any hidden characters in the white space.
No Subject
Frankie Roberto Posted Dec 8, 2002
"That itself doesn't validate and doesn't make the /HEAD validate"
...shows how much I know! Why's that then?
No Subject
Ion the Naysayer Posted Dec 8, 2002
If you take a look at the HTML 4.01 spec, you'll note that is a required element.
No Subject
Ion the Naysayer Posted Dec 8, 2002
Using / to close elements that only have one tag in them (e.g. meta or link) is only for XHTML and other XML documents.
No Subject
Ion the Naysayer Posted Dec 9, 2002
I always keep a copy of the specs for whatever I'm working on nearby just in case something funny happens .
Key: Complain about this post
No Subject
More Conversations for Website Developer's Forum
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."