Fix Tag Structure For XHTML Compliance
While working with (X)HTML you can quickly become a victim of invalid tag mistakes that mess with the structure of your document. Failure to comply with rules on how tags need to be ordered, placed, and closed can cause to Web Pages to display information incorrectly and they certainly do not comply with web standards. Aggiorno currently handles 3 types of conversions that deal with common task mistakes: fix invalid tag structure, fix shuffled tags, and fix unclosed tags. This aggiorning uses the XHTML 1.0 Transitional DOCTYPE as a reference. You can find detailed examples below
Invalid Tag Structure Fixes
In order for the page to have an unambiguous meaning, tags in Web Pages need to follow certain consistency rules. All opened tags need to be closed following a tree structure; that is to say, "the last opened tag is the first one to be closed".
Aggiorno can help you find these errors and automatically carry out these types of conversions:
Shuffled Tags Fixes
Shuffled tags, commonly referred to as a “tag soup”, is similar to having an invalid tag structure. It can usually be fixed by merely shuffling back the closing or opening tags, but sometimes a more complex transformation is called for. Aggiorno can spot these syntactic errors and assist you in fixing them:
Unclosed Tags Fixes
All tags must be closed in XHTML. Depending on the tag, a separate tag or self-closing tag can be used. This Aggiorning can detect where a tag should have been closed, eliminating ambiguity and lending a helping hand to further Aggiornings.
Aggiorno can find these, and as can be seen in the following code sample, can fix a table whose row and column tags were incorrectly closed: