Contents

[edit]

Tidy: ... isn't allowed in <...> elements

[edit]

Cause:

The structure of a HTML document does not allow to insert all type of tags in all conditions.

[edit]

Example:

For example, the structure of the HTML document contains some mandatory tags that are inserted in a defined order.

Good<html><head>

<body>... body of document ...</body>
</head></html>

Good<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">
<html><head>
 <title>Title</title>
</head>
<body>
 ... body of document ...
</body></html>

[edit]

Solution:

Move the HTML element into the right section.

[edit]

References:

Retrieved from "http://www.htmlpedia.org/wiki/Tidy_11"