Jump to content

Bare bones web page failing validation


Primal
 Share

Recommended Posts

I was trying to validate another website I was tweaking for a friend when I kept getting a bizarre error that I didn't understand. So I tried to validate a bare-bones webpage, and I still got the same error. Here's the page I tried in:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /></head><body></body></html>

And here's the error message:

Line 7, Column 6: end tag for "head" which is not finished.‚úČ Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p> Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
Can someone please explain to me why this is happening. It's really frustrating, as I can find no explination myself.Thanks,Prymal
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...