954,153 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

HTML validation problems

i have started validating the pages on my site (i know i should have done this first, but give me a break, its my first website.. :lol: )

im using http://validator.w3.org/ to do the validating and i have 2 issues i need help with.

ok, this is what the begining of my first page looks like:

Male Pattern Baldness, Androgenetic Alopecia

this is the validation error i get:

Line 9, column 6: end tag for element "HEAD" which is not open

Line 11, column 5: document type does not allow element "BODY" here

if i try to move the


apart from that i get another strange error:

Line 18, column 12: there is no attribute "HEIGHT"

i checked on an HTML tutorial and there IS such attribure. furthermore, i even use it a few more times and there no mention of it.

any idea why i get those errors?? :cry:

seffi
Newbie Poster
5 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

The / at the end of the link tag is an XHTML 1.0+ requirement but is not valid for earlier versions such as HTML 4.0 which is how you have defined your page.

The height attribute is implemented by browsers but is not part of the "official" standard. Browsers implement a lot of non-standard attributes and depending on the tutorial/reference site this may or may not be taken into account in the documentation depending on how aware the author is of the actual standards. Basically any non-standard attributes such as height may not be handled as you expect by all browsers - particularly those that are more compliant to the standards (which includes all version 7 browsers).

felgall
Junior Poster in Training
50 posts since Aug 2004
Reputation Points: 13
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You