Sp 79

From Htmlpedia
Jump to: navigation, search

OpenSP: End tag for element ... which is not open

Cause:

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 error will disappear as soon as you fix the original problem.

If this error occured in a script section of your document, you should probably read this FAQ entry.

The SGML parser reports this error for FORM, if the opening FORM's action attribute is not enclosed in quotes, at least for HMTL Transitional, when the quotes are good practice, rather than necessary.

Example:

Bad<b>abc</b></b>
Good<b>abc</b>

This can also be due to bad javascript:

Baddocument.write("</h1>");
Gooddocument.write("<\/h1>");

In such case, you need to escape the </ with "\".

Solution:

For a closing tag, remove the closing tag or add the missing opening tag before.

References: