A Conversation for Website Developer's Forum

No Subject

Post 1

lw - ck

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

Post 2

HappyDude

It is probally an issue with "White Space"


No Subject

Post 3

Frankie Roberto

how about using /> for meta and link to close the tags...?


No Subject

Post 4

lw - ck

"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

Post 5

HappyDude

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

Post 6

Frankie Roberto

"That itself doesn't validate and doesn't make the /HEAD validate"

...shows how much I know! Why's that then?


No Subject

Post 7

Ion the Naysayer

If you take a look at the HTML 4.01 spec, you'll note that is a required element.


No Subject

Post 8

Ion the Naysayer

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

Post 9

lw - ck

smiley - cheers Ion, It was a rough version of the page template which is why I had given it no titlesmiley - doh

CK


No Subject

Post 10

Ion the Naysayer

I always keep a copy of the specs for whatever I'm working on nearby just in case something funny happens smiley - smiley.


Key: Complain about this post