|
||||||||||||||||||||
|
Selecting Tags This is one of the most useful little 'secrets' in Dreamweaver. With this method, you can remove unwanted or erroneous tags, select specific objects, and select the code surrounding objects. The tag selector in the status bar at the bottom of the Document window shows the hierarchy of tags surrounding the current selection.
In this case we see the paragraph tag <p>, which is nested within the table cell <td>, which is nested within the table row <tr>, which is a part of a larger table <table>. The table is contained within the <body>. Click any tag in the hierarchy to select that tag and all its contents. Click <body> to select the entire body of the document. Use this method to select the link code (a href) that surrounds the back to top gif, or other images in your libraries that have code attached to them. An example follows at the bottom of this page. Using the tag selector You can use the tag selector to select, edit, or remove tags without leaving design/redesign view.
Click a tag in the tag selector.
To remove a tag: Right-click (Windows) or Control-click (Macintosh) a tag in the tag selector. Select Remove Tag from the menu.
In this case we will remove the link <a> surrounding the text. To select an object along with its surrounding code: Here we have selected the image tag by clicking on it. Notice that the <img> tag is bold.
Now that you have selected the image along with its code, simply go to File > Copy or Ctrl C to copy it. Then paste it, File > Paste or Ctrl P to paste the complete element into your page. |
|||||||||||||||||||
|
|