Jump to content
php.lv forumi

validatora kļūda


magone

Recommended Posts

Validators saka:

 

document type does not allow element "BODY" here .

<body>✉

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

 

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

 

Line 223, Column 6: end tag for "HTML" which is not finished .

</html>

 

Nesaprotu, kas viņam nepatīk.

Vai valīdā kodā vispār nedrīkst rakstīt style="..." iekš kāda taga, peim. <div "style="...">.

 

<html> sākuma tags arī ir norādīts.

Link to comment
Share on other sites

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>...</title>

<link href="style51.css" rel="stylesheet" type="text/css">

 

<link rel="shortcut icon" href="images/favicon.ico">

 

<script type="text/javascript">

function change_parent_url(url)

{

document.location=url;

}

</script>

<script type="text/javascript" src="lmenu.js"></script>

</head>

 

 

<body>

...

</body>

</html>

 

Vai te kaut kas nav lāgā vai arī jāmeklē dziļāk iekš body sekcijas?

Link to comment
Share on other sites

×
×
  • Create New...