Jump to content

Bare bones web page failing validation


Primal

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...