Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation issue

Status
Not open for further replies.

cj737

Technical User
May 28, 2009
2
US
im trying to validate my xhtml on the w3 validation site but i keep getting error i cant quite figure out.



# Line 47, Column 7: end tag for element "head" which is not open

</head>

?

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.


# Error Line 47, Column 7: XML Parsing Error: Opening and ending tag mismatch: html line 2 and head

</head>




my code is
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en" lang="en" >
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
  <title>Tutorial</title>
<link rel="stylesheet" type="text/css" href="text.css" />
<style type="text/css">

</style>
</head>
<body>
 
The error is occurring on line 47 of your code. The code you've given us has 11 lines. Whilst I applaud your (presumed) efforts to edit out irrelevant stuff before posting it here, it looks like you've edited out whatever's causing the problem.

It's likely to be an extra [tt]</head>[/tt] in your code.

Can you give us the URL so we can see for ourselves?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
My page is not online at the moment. but give me a few hours I'm at work currently right now but ill throw it up when i get home. On my lunch ill try to find it my self again, If i do ill post it up here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top