TIP 88: Adding Missing End Tags with the Outline Editor


When you run the Syntax Checker (see Tip 84) to validate your source code, you might get an occasional warning that the closing end tag for an element is missing (Figure 88a). This means the opening tag of a pair such as a table, multimedia object, or layer is missing the required end tag. There are some elements such as <img> and <meta> that don't need a closing tag, but these are exceptions to the rule.

Figure 88a. The Syntax Checker warns you of missing end tags.


If you need to fix a missing end tag error, switch to the Outline Editor instead of wading through lines of lines of source code trying to locate the problem. You can easily toggle an element in the Outline Editor from unary (no closing tag) to binary (closing tag) by Control-clicking (Mac) or right-clicking (Windows) on the element and choosing Binary from the contextual menu (Figure 88b).

Figure 88b. Add the closing tag by choosing Binary from the contextual menu.


You can also toggle from unary to binary with the Toggle Binary icon in the toolbar. GoLive is smart enough to determine where the closing tag of a binary pair should be placed in the page and creates it in the correct location.



    Adobe GoLive CS2 Tips and Tricks The 250 Best
    Adobe GoLive CS2 Tips and Tricks The 250 Best
    ISBN: B008CMGJS0
    EAN: N/A
    Year: 2005
    Pages: 301

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net