Attribute-based syntax typically uses XML-like attributes to either annotate parts of a Web page (see StructureAnnotation) or to introduce program code into the document (see PythonInWebPage). See StructureAnnotation for an example. One stated advantage of attribute-based syntax is that the document can still be manipulated using XML tools and typically be edited using HTML-aware tools. However, not all HTML editors allow the use of arbitrary XML attributes on HTML elements, and the (mis/re)use of permissible HTML attributes may be required. For example: {{{
Name | {name} |
---|