1. A method for creating a structured document, wherein a structured document includes a plurality of content elements wrapped in pairs of hierarchically nested tags, comprising: parsing a document of a particular type containing content into a plurality of content elements; and for a selected content element, suggesting an optimal tag according to a tag suggestion procedure; wherein the tag suggestion procedure comprises: providing sample data in the form of structured sample documents; analyzing patterns in the sample data to derive a set of tag suggestions; deriving a set of candidate tags from the set of tag suggestions for the selected content element; and evaluating the set of candidate tags according to tag suggestion criteria to determine an optimal tag for the selected content element.