Tidy 83

From Htmlpedia
Jump to: navigation, search

Tidy: Notice: replacing <...> by <...>

Cause:

This is due to:

  • a bad order of the HTML tags
  • or to an additional tag that should not be there
  • or to a closing tags of an explitely or implicitely closed tag

Example:

replacing </p> by <br>

Bad<p>hello</p></p> (explicit close)
Good<p>hello</p><br>
Bad<p>abc<br><table>...</table></p> (implicit close)
Good<p>abc<br></p><table>...</table>

In the above sample, the <p> tag is implicitely closed when a new "block-level" tag like <table> is opened. For more info, read the definition of <p>.

Solution:

Bring the tags to the right order, remove the additional tag or move the closing tag in front of the block element.

References: