WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
Dreamweaver - Clean Up HTML Command
 

By Eddy R.
9-23-99

Have you ever had the need to remove unwanted HTML tags from web documents? If so, how did you do it? Did you search the document(s) for unwanted tags line by line, or did you just forget about it since it would take too long to search for those tags?

Getting rid of unwanted HTML in one document isn't that bad, the most it could take you is a few minutes but getting rid of unwanted HTML in 500 or more documents is a different story, searching for one tag alone could take you hours!

Well, this is where Dreamweaver comes to the rescue. DW (Dreamweaver) has a neat feature that makes searching and removing unwanted HTML tags a breeze! Here is how it works.

Let's say that you are trying to get rid of the <small> tag in your entire web site which oh by the way, consists of 500 documents. All you have to do to remove such tag is:

  • Launch DW and select the document or site you wish to work on.

  • Go to Edit menu and select the Replace option.

  • Once the Replace window pops up, select Current Site from the Find In box.

  • Select Tag from the Find What box along with the HTML tag you want to remove (in our example we are trying to remove the <small> tag).

  • Select Strip Tag from the Action box and select Replace All.

That's it! This command will get rid of the <small> tags in all the documents in your site.

Note: If you are using Templates, make sure you run this procedure on the Templates first and then on the entire site. Failure to do this may not allow DW - Search and Replace command to work as intended. As always, make a backup of your entire site before you make any site wide changes.

.
.

 

More Resources
Templates
Learn the code

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.