Inserting and Formatting Text > Searching and replacing text, tags, and attributes > Searching for HTML tags and attributes |
Searching for HTML tags and attributes
Use the Specific Tag option in the Find or Replace dialog box to search for specific tags, attributes, and attribute values. For example, you can search for all img
tags with no alt
attribute. See Searching and replacing text, tags, and attributes for information about the various types of searches.
To perform a tag search:
1 | Choose Edit > Find and Replace, and specify which files to search, as detailed in Searching and replacing text, tags, and attributes. |
2 | Choose Specific Tag from the Search For pop-up menu. |
3 | Choose a specific tag from the pop-up menu next to Search For pop-up menu, or choose [any tag]. |
If you only want to search for all occurrences of the specified tag, press the Minus (-) button and skip to step 6. Otherwise, proceed with step 4. | |
4 | Limit the search with one of the following tag modifiers: |
With Attribute chooses an attribute that must be in the tag for it to match. You can specify a particular value for the attribute or choose [any value]. | |
Without Attribute chooses an attribute that cannot be in the tag for it to match. For example, choose this option to search for all IMG tags with no ALT attribute. |
|
Containing specifies text or a tag that must be contained within the original tag for it to match. For example, in the code <b><font face="Arial">heading 1</font></b> , the font tag is contained within the b tag. |
|
Not Containing specifies text or a tag that cannot be contained within the original tag for it to match. | |
Inside Tag specifies a tag that the target tag must be inside of for it to match. | |
Not Inside Tag specifies a tag that the target tag cannot be inside of for it to match. | |
5 | Click the Plus (+) button and repeat step 4 to further limit the search. |
6 | Initiate the search: |
Click Find Next to highlight the next instance of the search text in the current document. | |
Click Find All to generate a list of all the instances of the search text in the current document. | |
Click Find Next to highlight the next instance of the search text in the current document or if there is none, open the next document that contains the search text. | |
Click Find All to generate a list of all the instances of the search text in the current document or, if you are searching a directory or site, generate a list of documents that contain the search text. | |